Commit dc9bd8372e8b0146fed947dd3f1371b283b44465
1 parent
00cd65d4b4
Exists in
master
and in
1 other branch
Agrego propiedad maxlength
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -40,7 +40,7 @@ angular.module('focaModal') |
40 | 40 | .controller('focaModalPromptController', [ |
41 | 41 | '$uibModalInstance', '$scope', 'options', 'focaModalService', |
42 | 42 | function($uibModalInstance, $scope, options, focaModalService) { |
43 | - | |
43 | + | |
44 | 44 | $scope.options = options; |
45 | 45 | $scope.cancelar = function() { |
46 | 46 | $uibModalInstance.dismiss(); |
... | ... | @@ -51,7 +51,6 @@ angular.module('focaModal') |
51 | 51 | focaModalService.alert('Ingrese email/s válido/s'); |
52 | 52 | return; |
53 | 53 | } |
54 | - | |
55 | 54 | $uibModalInstance.close($scope.options.value); |
56 | 55 | } |
57 | 56 | }; |
src/views/modal-prompt.html
... | ... | @@ -7,6 +7,7 @@ |
7 | 7 | class="form-control" |
8 | 8 | ng-model="options.value" |
9 | 9 | ng-show="!options.textarea" |
10 | + maxlength="{{options.maxlength}}" | |
10 | 11 | ng-readonly="options.readonly" |
11 | 12 | ng-keypress="aceptar($event.keyCode)"> |
12 | 13 | |
... | ... | @@ -15,6 +16,7 @@ |
15 | 16 | class="form-control text-uppercase" |
16 | 17 | ng-model="options.value" |
17 | 18 | ng-show="options.textarea" |
19 | + maxlength="{{options.maxlength}}" | |
18 | 20 | ng-readonly="options.readonly" |
19 | 21 | ng-keypress="aceptar($event.keyCode)"></textarea> |
20 | 22 | </div> |