Commit 747b28e47f5e45d37c19f3a4980c1bde839175d6
1 parent
5a6b514e61
Exists in
master
git push origin master
Showing
2 changed files
with
5 additions
and
1 deletions
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 | }; |