Commit a2da28e6e515a56eb4ceb6d7e6b8e5b8176348d2
Exists in
develop
Merge branch 'develop' of http://git.focasoftware.com/brodriguez/foca-modal
Showing
4 changed files
Show diff stats
src/js/controller.js
... | ... | @@ -42,6 +42,10 @@ angular.module('focaModal') |
42 | 42 | function($uibModalInstance, $scope, options, focaModalService) { |
43 | 43 | |
44 | 44 | $scope.options = options; |
45 | + | |
46 | + if (!$scope.options.tipo) { | |
47 | + $scope.options.tipo = 'text' | |
48 | + } | |
45 | 49 | $scope.cancelar = function() { |
46 | 50 | $uibModalInstance.dismiss(); |
47 | 51 | }; |
src/views/modal-alert.html
src/views/modal-confirm.html