From b0902d7eeed0f3daab8e652e7ee331b5decbb429 Mon Sep 17 00:00:00 2001 From: Pablo Marco del Pont Date: Mon, 29 Oct 2018 10:41:28 -0300 Subject: [PATCH] =?UTF-8?q?-=20Modifiqu=C3=A9=20la=20vista=20para=20hacer?= =?UTF-8?q?=20foco=20al=20entrar=20y=20seleccionar=20nombre=20al=20presion?= =?UTF-8?q?ar=20enter.=20-=20Agregu=C3=A9=20gulp=20clean=20y=20watch.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gulpfile.js | 11 ++++++++++- src/views/foca-busqueda-cliente-modal.html | 2 ++ 2 files changed, 12 insertions(+), 1 deletion(-) 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()" >
-- 1.9.1