Commit 4d5179b6bf177c63e3cf592e3e2ff0cd0c6dd8b4
Exists in
develop
Merge branch 'master' into 'develop'
Master(efernandez) See merge request !35
Showing
2 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 | }; |