ソースを参照

tweak nojumps

Robin Herbots 11 年 前
コミット
10f2b00bfb
2 ファイル変更1 行追加1 行削除
  1. 1 0
      js/jquery.inputmask.js
  2. 0 1
      js/jquery.inputmask.phone.extensions.js

+ 1 - 0
js/jquery.inputmask.js

@@ -1352,6 +1352,7 @@
         };
         };
 
 
         function multiMaskScope(el, masksets, opts) {
         function multiMaskScope(el, masksets, opts) {
+            opts.nojumps = true;
             function caret(input, begin, end) {
             function caret(input, begin, end) {
                 var npt = input.jquery && input.length > 0 ? input[0] : input, range;
                 var npt = input.jquery && input.length > 0 ? input[0] : input, range;
                 if (typeof begin == 'number') {
                 if (typeof begin == 'number') {

+ 0 - 1
js/jquery.inputmask.phone.extensions.js

@@ -45,7 +45,6 @@ When using this extension make sure you specify the correct url to get the masks
                 //maskList.splice(0, 0, "+p(ppp)ppp-pppp");
                 //maskList.splice(0, 0, "+p(ppp)ppp-pppp");
                 return maskList;
                 return maskList;
             },
             },
-            nojumps: true,
             nojumpsThreshold: 4
             nojumpsThreshold: 4
         }
         }
     });
     });