Commit d14d61c9441ee420970a1c990a7a958c8cca07ec

Authored by Eric Fernandez
Exists in master and in 1 other branch develop

Merge branch 'develop' into 'master'

Develop

See merge request !13
src/js/uppercaseOnly-directive.js
... ... @@ -4,17 +4,18 @@ angular.module('focaDirectivas')
4 4 return {
5 5 require: '?ngModel',
6 6 link: function(scope, element, attrs, modelCtrl) {
7   - if(attrs.type === 'text' &&
8   - !attrs.readonly &&
9   - !attrs.disabled &&
10   - !attrs.uibDatepickerPopup) {
11   -
  7 + if (attrs.type === 'text' &&
  8 + !attrs.readonly &&
  9 + !attrs.disabled &&
  10 + !attrs.uibDatepickerPopup) {
12 11 modelCtrl.$parsers.push(function(input) {
13 12 return input ? input.toUpperCase() : '';
14 13 });
15 14 }
16   -
  15 +
17 16 element.addClass('text-uppercase');
  17 + element.addClass('foca-input');
  18 + element[0].autocomplete = 'off';
18 19 }
19 20 };
20 21 }