diff --git a/src/js/service.js b/src/js/service.js index b20c5d0..e8a1bd3 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -3,27 +3,27 @@ angular.module('focaModal') '$uibModal', function($uibModal) { return { - confirm: function(a) { + confirm: function(textoModal) { return $uibModal.open({ templateUrl: 'modal-confirm.html', controller: 'focaModalConfirmController', animation: false, backdrop: false, - resolve: { text: function() { return a; } } + resolve: { text: function() { return textoModal; } } }) .result.then( - function(p) { - return p; + function(resultado) { + return resultado; } ); }, - alert: function(a) { + alert: function(textoModal) { return $uibModal.open({ templateUrl: 'modal-alert.html', controller: 'focaModalAlertController', animation: false, backdrop: false, - resolve: { text: function() { return a; } } + resolve: { text: function() { return textoModal; } } }); } };