Commit 316117a151c392456bb4b946de08042728fab582
1 parent
893c8928e3
Exists in
master
espacio entre function y ()
Showing
1 changed file
with
6 additions
and
6 deletions
Show diff stats
src/js/service.js
| 1 | 1 | angular.module('focaModal') |
| 2 | 2 | .service('modal', [ |
| 3 | 3 | '$uibModal', |
| 4 | - function ($uibModal) { | |
| 4 | + function($uibModal) { | |
| 5 | 5 | return { |
| 6 | - confirm: function (a) { | |
| 6 | + confirm: function(a) { | |
| 7 | 7 | return $uibModal.open({ |
| 8 | 8 | templateUrl: 'modal-confirm.html', |
| 9 | 9 | controller: 'focaModalConfirmController', |
| 10 | 10 | animation: false, |
| 11 | 11 | backdrop: false, |
| 12 | - resolve: { text: function () { return a; } } | |
| 12 | + resolve: { text: function() { return a; } } | |
| 13 | 13 | }) |
| 14 | 14 | .result.then( |
| 15 | - function (p) { | |
| 15 | + function(p) { | |
| 16 | 16 | return p; |
| 17 | 17 | } |
| 18 | 18 | ); |
| 19 | 19 | }, |
| 20 | - alert: function (a) { | |
| 20 | + alert: function(a) { | |
| 21 | 21 | return $uibModal.open({ |
| 22 | 22 | templateUrl: 'modal-alert.html', |
| 23 | 23 | controller: 'focaModalAlertController', |
| 24 | 24 | animation: false, |
| 25 | 25 | backdrop: false, |
| 26 | - resolve: { text: function () { return a; } } | |
| 26 | + resolve: { text: function() { return a; } } | |
| 27 | 27 | }); |
| 28 | 28 | } |
| 29 | 29 | }; |