Commit 747b28e47f5e45d37c19f3a4980c1bde839175d6

Authored by Eric Fernandez
1 parent 5a6b514e61
Exists in master

git push origin master

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-prompt.html
... ... @@ -3,7 +3,7 @@
3 3 </div>
4 4 <div class="modal-body">
5 5 <input
6   - type="text"
  6 + type="{{options.tipo}}"
7 7 class="form-control"
8 8 ng-model="options.value"
9 9 ng-show="!options.textarea"