Browse Source

maxlength tweak

Robin Herbots 12 years ago
parent
commit
9f7cd630aa
2 changed files with 1 additions and 1733 deletions
  1. 1 1
      js/jquery.inputmask.js
  2. 0 1732
      qunit/tests.js~

+ 1 - 1
js/jquery.inputmask.js

@@ -985,7 +985,7 @@
                                 }
                             });
                         }
-                        if (getMaskLength() > maxLength && maxLength > -1) { //FF sets no defined max length to -1 
+                        if (getMaskLength() >= maxLength && maxLength > -1) { //FF sets no defined max length to -1 
                             if (maxLength < getActiveBufferTemplate().length) getActiveBufferTemplate().length = maxLength;
                             if (getActiveMaskSet()['greedy'] == false) {
                                 getActiveMaskSet()['repeat'] = Math.round(maxLength / getActiveBufferTemplate().length);

File diff suppressed because it is too large
+ 0 - 1732
qunit/tests.js~