Commit 4d5179b6bf177c63e3cf592e3e2ff0cd0c6dd8b4

Authored by Eric Fernandez
Exists in develop

Merge branch 'master' into 'develop'

Master(efernandez)

See merge request !35
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"