|
|
@@ -748,7 +748,7 @@
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
- function handleRemove(input, k, pos, noCheck) {
|
|
|
+ function handleRemove(input, k, pos) {
|
|
|
function generalize() {
|
|
|
if (opts.keepStatic) {
|
|
|
resetMaskSet(!0);
|
|
|
@@ -770,7 +770,7 @@
|
|
|
pos.end = pos.begin, pos.begin = pend;
|
|
|
}
|
|
|
k == $.inputmask.keyCode.BACKSPACE && pos.end - pos.begin <= 1 ? pos.begin = seekPrevious(pos.begin) : k == $.inputmask.keyCode.DELETE && pos.begin == pos.end && pos.end++,
|
|
|
- stripValidPositions(pos.begin, pos.end, noCheck), generalize();
|
|
|
+ stripValidPositions(pos.begin, pos.end), generalize();
|
|
|
var lvp = getLastValidPosition(pos.begin);
|
|
|
lvp < pos.begin ? (-1 == lvp && resetMaskSet(), getMaskSet().p = seekNext(lvp)) : getMaskSet().p = pos.begin;
|
|
|
}
|
|
|
@@ -802,7 +802,7 @@
|
|
|
end: ndx
|
|
|
} : caret(input), c = String.fromCharCode(k), isSlctn = isSelection(pos.begin, pos.end);
|
|
|
isSlctn && (getMaskSet().undoPositions = $.extend(!0, {}, getMaskSet().validPositions),
|
|
|
- handleRemove(input, $.inputmask.keyCode.DELETE, pos, !0), opts.insertMode || (opts.insertMode = !opts.insertMode,
|
|
|
+ handleRemove(input, $.inputmask.keyCode.DELETE, pos), opts.insertMode || (opts.insertMode = !opts.insertMode,
|
|
|
setValidPosition(pos.begin, strict), opts.insertMode = !opts.insertMode), isSlctn = !opts.multi),
|
|
|
getMaskSet().writeOutBuffer = !0;
|
|
|
var p = isRTL && !isSlctn ? pos.end : pos.begin, valResult = isValid(p, c, strict);
|
|
|
@@ -2025,7 +2025,7 @@
|
|
|
var matchRslt = buffer.join("").match(opts.regex.integerNPart(opts)), radixPosition = $.inArray(opts.radixPoint, maskset.buffer);
|
|
|
if (matchRslt && (-1 == radixPosition || radixPosition >= position)) if (0 == matchRslt[0].indexOf("0")) canClear = matchRslt.index != position || -1 == radixPosition; else {
|
|
|
var intPart = parseInt(matchRslt[0].replace(new RegExp($.inputmask.escapeRegex.call(this, opts.groupSeparator), "g"), ""));
|
|
|
- -1 != radixPosition && 10 > intPart && (maskset.validPositions[position].input = "0",
|
|
|
+ -1 != radixPosition && 10 > intPart && (maskset.validPositions[position].input = opts.placeholder.charAt(0),
|
|
|
canClear = !1);
|
|
|
}
|
|
|
}
|