Commit ac7b013a33776e447c2e53c43ae0c4796c377a2a
1 parent
316117a151
Exists in
master
and in
1 other branch
enter al final del archivo
Showing
1 changed file
with
1 additions
and
1 deletions
 
Show diff stats
src/js/controller.js
| 1 | angular.module('focaModal') | 1 | angular.module('focaModal') | 
| 2 | .controller('focaModalConfirmController', [ | 2 | .controller('focaModalConfirmController', [ | 
| 3 | '$uibModalInstance', '$scope', 'text', | 3 | '$uibModalInstance', '$scope', 'text', | 
| 4 | function($uibModalInstance, $scope, text) { | 4 | function($uibModalInstance, $scope, text) { | 
| 5 | $scope.param = text; | 5 | $scope.param = text; | 
| 6 | $scope.cancelar = function() { | 6 | $scope.cancelar = function() { | 
| 7 | $uibModalInstance.close(false); | 7 | $uibModalInstance.close(false); | 
| 8 | }; | 8 | }; | 
| 9 | $scope.aceptar = function() { | 9 | $scope.aceptar = function() { | 
| 10 | $uibModalInstance.close(true); | 10 | $uibModalInstance.close(true); | 
| 11 | }; | 11 | }; | 
| 12 | } | 12 | } | 
| 13 | ]) | 13 | ]) | 
| 14 | .controller('focaModalAlertController', [ | 14 | .controller('focaModalAlertController', [ | 
| 15 | '$uibModalInstance', '$scope', 'text', | 15 | '$uibModalInstance', '$scope', 'text', | 
| 16 | function($uibModalInstance, $scope, text) { | 16 | function($uibModalInstance, $scope, text) { | 
| 17 | $scope.param = text; | 17 | $scope.param = text; | 
| 18 | $scope.aceptar = function() { | 18 | $scope.aceptar = function() { | 
| 19 | $uibModalInstance.close(true); | 19 | $uibModalInstance.close(true); | 
| 20 | }; | 20 | }; | 
| 21 | } | 21 | } | 
| 22 | ]); | ||
| 22 | ]); |