Commit eda65bdf472c440f9be3ea43bc8598563dcea27e
1 parent
696658a387
Exists in
master
and in
1 other branch
reemplazo alert por modal
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/js/app.js
src/js/controller.js
... | ... | @@ -6,7 +6,8 @@ angular.module('focaModalCheque') |
6 | 6 | '$uibModalInstance', |
7 | 7 | '$uibModal', |
8 | 8 | 'sugerido', |
9 | - function($filter, $scope, $uibModalInstance, $uibModal, sugerido) { | |
9 | + 'focaModalService', | |
10 | + function($filter, $scope, $uibModalInstance, $uibModal, sugerido, focaModalService) { | |
10 | 11 | $scope.cheque = { |
11 | 12 | banco: { |
12 | 13 | desbco: ''//Nombre del banco |
... | ... | @@ -70,7 +71,7 @@ angular.module('focaModalCheque') |
70 | 71 | $scope.seleccionarLocalidad = function(key) { |
71 | 72 | if($scope.cheque.provincia.ID === undefined) { |
72 | 73 | //TODO: Poner modal alert de foca |
73 | - alert('Seleccione una provincia'); | |
74 | + focaModalService.alert('Seleccione una provincia'); | |
74 | 75 | return; |
75 | 76 | } |
76 | 77 | if(key === 13) { |