diff --git a/gulpfile.js b/gulpfile.js index 838a7cd..8f19dd2 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -17,7 +17,12 @@ var paths = { dist: 'dist/' }; -gulp.task('templates', function() { +gulp.task('clean', function(){ + return gulp.src(['tmp', 'dist'], {read: false}) + .pipe(clean()); +}); + +gulp.task('templates', ['clean'], function() { return pump( [ gulp.src(paths.srcViews), @@ -74,3 +79,7 @@ gulp.task('clean-post-install', function() { }); gulp.task('default', ['webserver']); + +gulp.task('watch', function(){ + gulp.watch([paths.srcJS, paths.srcViews], ['uglify']); +}); diff --git a/src/views/foca-busqueda-cliente-modal.html b/src/views/foca-busqueda-cliente-modal.html index eeefd3e..b622a80 100644 --- a/src/views/foca-busqueda-cliente-modal.html +++ b/src/views/foca-busqueda-cliente-modal.html @@ -19,6 +19,8 @@ typeahead-no-results="sinResultados" typeahead-on-select="seleccionar($item)" class="form-control" + foca-focus="true" + ng-keypress="$event.keyCode === 13 && aceptar()" >