Commit 3f82004327b41287385ecd7717597463a73ced13
Exists in
master
Merge branch 'master' into 'master'
Master(efernandez) See merge request !7
Showing
3 changed files
Show diff stats
gulpfile.js
| ... | ... | @@ -40,7 +40,6 @@ gulp.task('uglify', ['templates'], function() { |
| 40 | 40 | 'tmp/views.js' |
| 41 | 41 | ]), |
| 42 | 42 | concat('foca-estado-cisternas.js'), |
| 43 | - replace("['ngRoute', 'focaModal', 'ui.bootstrap', 'focaBotoneraLateral']", '[]'), | |
| 44 | 43 | replace("src/views/", ''), |
| 45 | 44 | gulp.dest(paths.tmp), |
| 46 | 45 | rename('foca-estado-cisternas.min.js'), |
src/js/app.js
src/js/controller.js
| ... | ... | @@ -24,20 +24,25 @@ angular.module('focaEstadoCisternas') |
| 24 | 24 | }); |
| 25 | 25 | |
| 26 | 26 | $scope.seleccionarTransportista = function() { |
| 27 | - var modalInstance = $uibModal.open( | |
| 28 | - { | |
| 29 | - ariaLabelledBy: 'Busqueda de Transportista', | |
| 30 | - templateUrl: 'modal-proveedor.html', | |
| 31 | - controller: 'focaModalProveedorCtrl', | |
| 32 | - size: 'lg', | |
| 33 | - resolve: { | |
| 34 | - transportista: function() { | |
| 35 | - return true; | |
| 36 | - } | |
| 27 | + var parametrosModal = { | |
| 28 | + titulo: 'Búsqueda de Transportista', | |
| 29 | + query: '/transportista', | |
| 30 | + columnas: [ | |
| 31 | + { | |
| 32 | + nombre: 'Código', | |
| 33 | + propiedad: 'COD' | |
| 34 | + }, | |
| 35 | + { | |
| 36 | + nombre: 'Nombre', | |
| 37 | + propiedad: 'NOM' | |
| 38 | + }, | |
| 39 | + { | |
| 40 | + nombre: 'CUIT', | |
| 41 | + propiedad: 'CUIT' | |
| 37 | 42 | } |
| 38 | - } | |
| 39 | - ); | |
| 40 | - return modalInstance.result; | |
| 43 | + ] | |
| 44 | + }; | |
| 45 | + return focaModalService.modal(parametrosModal); | |
| 41 | 46 | }; |
| 42 | 47 | |
| 43 | 48 | $scope.seleccionarVehiculo = function() { |