|
|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.0.37
|
|
|
+* Version: 3.0.38
|
|
|
*/
|
|
|
|
|
|
(function ($) {
|
|
|
@@ -1364,14 +1364,20 @@
|
|
|
if (activeElement === el) { //position the caret when in focus
|
|
|
$el.addClass('focus.inputmask');
|
|
|
caret(el, seekNext(getLastValidPosition()));
|
|
|
- } else if (opts.clearMaskOnLostFocus) {
|
|
|
- if (getBuffer().join('') == getBufferTemplate().join('')) {
|
|
|
- el._valueSet('');
|
|
|
+ } else {
|
|
|
+ if (isComplete(getBuffer()) === false) {
|
|
|
+ if (opts.clearIncomplete)
|
|
|
+ resetMaskSet();
|
|
|
+ }
|
|
|
+ if (opts.clearMaskOnLostFocus) {
|
|
|
+ if (getBuffer().join('') == getBufferTemplate().join('')) {
|
|
|
+ el._valueSet('');
|
|
|
+ } else {
|
|
|
+ clearOptionalTail(el);
|
|
|
+ }
|
|
|
} else {
|
|
|
- clearOptionalTail(el);
|
|
|
+ writeBuffer(el, getBuffer());
|
|
|
}
|
|
|
- } else {
|
|
|
- writeBuffer(el, getBuffer());
|
|
|
}
|
|
|
|
|
|
installEventRuler(el);
|
|
|
@@ -1658,7 +1664,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.0.37
|
|
|
+* Version: 3.0.38
|
|
|
*/
|
|
|
|
|
|
(function ($) {
|
|
|
@@ -2023,7 +2029,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 3.0.37
|
|
|
+Version: 3.0.38
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
|
@@ -2144,7 +2150,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 3.0.37
|
|
|
+Version: 3.0.38
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
|
@@ -2607,7 +2613,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 3.0.37
|
|
|
+Version: 3.0.38
|
|
|
|
|
|
Optional extensions on the jquery.inputmask base
|
|
|
*/
|
|
|
@@ -2788,7 +2794,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 3.0.37
|
|
|
+Version: 3.0.38
|
|
|
|
|
|
Regex extensions on the jquery.inputmask base
|
|
|
Allows for using regular expressions as a mask
|
|
|
@@ -2975,7 +2981,7 @@ Input Mask plugin extensions
|
|
|
http://github.com/RobinHerbots/jquery.inputmask
|
|
|
Copyright (c) 2010 - 2014 Robin Herbots
|
|
|
Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-Version: 3.0.37
|
|
|
+Version: 3.0.38
|
|
|
|
|
|
Phone extension.
|
|
|
When using this extension make sure you specify the correct url to get the masks
|