Commit 10f926e48fb4e459a98f5ce3c471be1bbd365ecf
1 parent
833b6ee101
Exists in
master
fix foca modal
Showing
2 changed files
with
8 additions
and
8 deletions
Show diff stats
package.json
1 | { | 1 | { |
2 | "name": "foca-modal", | 2 | "name": "foca-modal", |
3 | "version": "0.0.1", | 3 | "version": "0.0.1", |
4 | "description": "Modales de foca", | 4 | "description": "Modales de foca", |
5 | "main": "index.js", | 5 | "main": "index.js", |
6 | "scripts": { | 6 | "scripts": { |
7 | "test": "echo \"Error: no test specified\" && exit 1", | 7 | "test": "echo \"Error: no test specified\" && exit 1", |
8 | "gulp-pre-commit": "gulp pre-commit", | 8 | "gulp-pre-commit": "gulp pre-commit", |
9 | "compile": "gulp uglify", | 9 | "compile": "gulp uglify", |
10 | "postinstall": "npm run compile && gulp clean-post-install", | 10 | "postinstall": "npm run compile && gulp clean-post-install", |
11 | "install-dev": "npm install -D angular gulp gulp-angular-templatecache gulp-clean gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jshint pump git+https://debo.suite.repo/modulos-npm/foca-directivas.git" | 11 | "install-dev": "npm install -D angular gulp gulp-angular-templatecache gulp-clean gulp-connect gulp-htmlmin gulp-jshint gulp-rename gulp-replace gulp-uglify jshint pump git+http://git.focasoftware.com/npm/foca-directivas.git" |
12 | }, | 12 | }, |
13 | "pre-commit": [ | 13 | "pre-commit": [ |
14 | "gulp-pre-commit" | 14 | "gulp-pre-commit" |
15 | ], | 15 | ], |
16 | "repository": { | 16 | "repository": { |
17 | "type": "git", | 17 | "type": "git", |
18 | "url": "https://debo.suite.repo/modulos-npm/foca-modal.git" | 18 | "url": "http://git.focasoftware.com/npm/foca-modal.git" |
19 | }, | 19 | }, |
20 | "author": "Foca Software", | 20 | "author": "Foca Software", |
21 | "license": "ISC", | 21 | "license": "ISC", |
22 | "peerDependencies": { | 22 | "peerDependencies": { |
23 | "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git" | 23 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git" |
24 | }, | 24 | }, |
25 | "devDependencies": { | 25 | "devDependencies": { |
26 | "angular": "^1.7.5", | 26 | "angular": "^1.7.5", |
27 | "foca-directivas": "git+https://debo.suite.repo/modulos-npm/foca-directivas.git", | 27 | "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", |
28 | "gulp": "^3.9.1", | 28 | "gulp": "^3.9.1", |
29 | "gulp-angular-templatecache": "^2.2.3", | 29 | "gulp-angular-templatecache": "^2.2.5", |
30 | "gulp-clean": "^0.4.0", | 30 | "gulp-clean": "^0.4.0", |
31 | "gulp-connect": "^5.6.1", | 31 | "gulp-connect": "^5.7.0", |
32 | "gulp-htmlmin": "^5.0.1", | 32 | "gulp-htmlmin": "^5.0.1", |
33 | "gulp-jshint": "^2.1.0", | 33 | "gulp-jshint": "^2.1.0", |
34 | "gulp-rename": "^1.4.0", | 34 | "gulp-rename": "^1.4.0", |
35 | "gulp-replace": "^1.0.0", | 35 | "gulp-replace": "^1.0.0", |
36 | "gulp-uglify": "^3.0.1", | 36 | "gulp-uglify": "^3.0.1", |
37 | "jshint": "^2.9.6", | 37 | "jshint": "^2.9.7", |
38 | "pump": "^3.0.0" | 38 | "pump": "^3.0.0" |
39 | } | 39 | } |
40 | } | 40 | } |
41 | 41 |
src/js/controller.js
1 | angular.module('focaModal') | 1 | angular.module('focaModal') |
2 | .controller('focaModalConfirmController', [ | 2 | .controller('focaModalConfirmController', [ |
3 | '$uibModalInstance', '$scope', 'textoModal', | 3 | '$uibModalInstance', '$scope', 'textoModal', |
4 | function($uibModalInstance, $scope, textoModal) { | 4 | function($uibModalInstance, $scope, textoModal) { |
5 | $scope.textoModal = textoModal; | 5 | $scope.textoModal = textoModal; |
6 | $scope.cancelar = function() { | 6 | $scope.cancelar = function() { |
7 | $uibModalInstance.close(false); | 7 | $uibModalInstance.dismiss(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', 'textoModal', | 15 | '$uibModalInstance', '$scope', 'textoModal', |
16 | function($uibModalInstance, $scope, textoModal) { | 16 | function($uibModalInstance, $scope, textoModal) { |
17 | $scope.textoModal = textoModal; | 17 | $scope.textoModal = textoModal; |
18 | $scope.aceptar = function() { | 18 | $scope.aceptar = function() { |
19 | $uibModalInstance.close(true); | 19 | $uibModalInstance.close(true); |
20 | }; | 20 | }; |
21 | } | 21 | } |
22 | ]); | 22 | ]); |
23 | 23 |