Commit b0902d7eeed0f3daab8e652e7ee331b5decbb429

Authored by Pablo Marco del Pont
1 parent 1839af92b6
Exists in master

- Modifiqué la vista para hacer foco al entrar y seleccionar nombre al presionar enter.

- Agregué gulp clean y watch.
... ... @@ -17,7 +17,12 @@ var paths = {
17 17 dist: 'dist/'
18 18 };
19 19  
20   -gulp.task('templates', function() {
  20 +gulp.task('clean', function(){
  21 + return gulp.src(['tmp', 'dist'], {read: false})
  22 + .pipe(clean());
  23 +});
  24 +
  25 +gulp.task('templates', ['clean'], function() {
21 26 return pump(
22 27 [
23 28 gulp.src(paths.srcViews),
... ... @@ -74,3 +79,7 @@ gulp.task('clean-post-install', function() {
74 79 });
75 80  
76 81 gulp.task('default', ['webserver']);
  82 +
  83 +gulp.task('watch', function(){
  84 + gulp.watch([paths.srcJS, paths.srcViews], ['uglify']);
  85 +});
src/views/foca-busqueda-cliente-modal.html
... ... @@ -19,6 +19,8 @@
19 19 typeahead-no-results="sinResultados"
20 20 typeahead-on-select="seleccionar($item)"
21 21 class="form-control"
  22 + foca-focus="true"
  23 + ng-keypress="$event.keyCode === 13 && aceptar()"
22 24 >
23 25 <i ng-show="cargandoClientes" class="fas fa-sync"></i>
24 26 <div ng-show="sinResultados">