Browse Source

fix skipoptionalchar

Robin Herbots 12 years ago
parent
commit
1af6eac91e

+ 1 - 1
build.properties

@@ -7,7 +7,7 @@ distdir = dist
 
 build.major = 2
 build.minor = 2
-build.revision = 40
+build.revision = 41
 
 target = jquery.inputmask.bundle.js
 target.min = jquery.inputmask.bundle.min.js

+ 1 - 1
component.json

@@ -1,6 +1,6 @@
 {
     "name": "jquery.inputmask",
-    "version": "2.2.40",
+    "version": "2.2.41",
     "main": "./js/jquery.inputmask.js",
     "dependencies": {
         "jquery": ">=1.5"

BIN
dist/jQuery.InputMask.2.2.40.nupkg


BIN
dist/jQuery.InputMask.2.2.41.nupkg


+ 8 - 8
dist/jquery.inputmask.bundle.js

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2013 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 2.2.40
+* Version: 2.2.41
 */
 
 (function ($) {
@@ -455,7 +455,7 @@
                         var maskPos = pos;
                         if (currentActiveMasksetIndex != activeMasksetIndex && !isMask(pos)) {
                             if (c == activeMaskset['_buffer'][maskPos] || c == opts.skipOptionalPartCharacter) { //match non-mask item
-                                results.push({ "activeMasksetIndex": index, "result": { "refresh": true } }); //new command hack only rewrite buffer
+                                results.push({ "activeMasksetIndex": index, "result": { "refresh": true, c: activeMaskset['_buffer'][maskPos] } }); //new command hack only rewrite buffer
                                 activeMaskset['lastValidPosition'] = maskPos;
                                 return false;
                             } else activeMaskset['lastValidPosition'] = isRTL ? getMaskLength() + 1 : -1; //mark mask as validated and invalid
@@ -917,7 +917,7 @@
                             checkVal(input, true, false);
                             if (isComplete(getActiveBuffer()))
                                 $input.trigger("complete");
-                            $input.click();    
+                            $input.click();
                         }, 0);
                     }).bind('setvalue.inputmask', function () {
                         var input = this;
@@ -1444,7 +1444,7 @@
                         }
                     }
 
-                    function keyupEvent(e) { 
+                    function keyupEvent(e) {
                         var $input = $(this), input = this, k = e.keyCode, buffer = getActiveBuffer();
                         opts.onKeyUp.call(this, e, buffer, opts); //extra stuff to execute on keyup
                         if (k == opts.keyCode.TAB && $input.hasClass('focus.inputmask') && input._valueGet().length == 0 && opts.showMaskOnFocus) {
@@ -1466,7 +1466,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.40
+Version: 2.2.41
 
 Optional extensions on the jquery.inputmask base
 */
@@ -1567,7 +1567,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.40
+Version: 2.2.41
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2060,7 +2060,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.40
+Version: 2.2.41
 
 Optional extensions on the jquery.inputmask base
 */
@@ -2222,7 +2222,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.2.40
+Version: 2.2.41
 
 Regex extensions on the jquery.inputmask base
 Allows for using regular expressions as a mask

File diff suppressed because it is too large
+ 6 - 6
dist/jquery.inputmask.bundle.min.js


File diff suppressed because it is too large
+ 2 - 2
dist/min/jquery.inputmask.js


+ 1 - 1
jquery.inputmask.jquery.json

@@ -8,7 +8,7 @@
 		"inputmask",
 		"mask"
     ],
-    "version": "2.2.40",
+    "version": "2.2.41",
     "author": {
         "name": "Robin Herbots",
         "url": "http://github.com/RobinHerbots/jquery.inputmask"

+ 3 - 3
js/jquery.inputmask.js

@@ -455,7 +455,7 @@
                         var maskPos = pos;
                         if (currentActiveMasksetIndex != activeMasksetIndex && !isMask(pos)) {
                             if (c == activeMaskset['_buffer'][maskPos] || c == opts.skipOptionalPartCharacter) { //match non-mask item
-                                results.push({ "activeMasksetIndex": index, "result": { "refresh": true } }); //new command hack only rewrite buffer
+                                results.push({ "activeMasksetIndex": index, "result": { "refresh": true, c: activeMaskset['_buffer'][maskPos] } }); //new command hack only rewrite buffer
                                 activeMaskset['lastValidPosition'] = maskPos;
                                 return false;
                             } else activeMaskset['lastValidPosition'] = isRTL ? getMaskLength() + 1 : -1; //mark mask as validated and invalid
@@ -917,7 +917,7 @@
                             checkVal(input, true, false);
                             if (isComplete(getActiveBuffer()))
                                 $input.trigger("complete");
-                            $input.click();    
+                            $input.click();
                         }, 0);
                     }).bind('setvalue.inputmask', function () {
                         var input = this;
@@ -1444,7 +1444,7 @@
                         }
                     }
 
-                    function keyupEvent(e) { 
+                    function keyupEvent(e) {
                         var $input = $(this), input = this, k = e.keyCode, buffer = getActiveBuffer();
                         opts.onKeyUp.call(this, e, buffer, opts); //extra stuff to execute on keyup
                         if (k == opts.keyCode.TAB && $input.hasClass('focus.inputmask') && input._valueGet().length == 0 && opts.showMaskOnFocus) {