Browse Source

Update readme & package description for multi-masks

Robin Herbots 13 years ago
parent
commit
940f5c4133

+ 11 - 1
README.md

@@ -17,7 +17,8 @@ Highlights:
 - non-greedy masks
 - non-greedy masks
 - many features can be enabled/disabled/configured by options
 - many features can be enabled/disabled/configured by options
 - supports readonly/disabled/dir="rtl" attributes
 - supports readonly/disabled/dir="rtl" attributes
-- support data-inputmask attribute
+- support data-inputmask attribute  
+- multi-mask support  
 
 
 
 
 ## Usage:
 ## Usage:
@@ -235,6 +236,15 @@ While the field has focus and is blank, users will see the full mask `___-___`.
 When the required part of the mask is filled and the field loses focus, the user will see `123`.
 When the required part of the mask is filled and the field loses focus, the user will see `123`.
 When both the required and optional parts of the mask are filled out and the field loses focus, the user will see `123-ABC`.
 When both the required and optional parts of the mask are filled out and the field loses focus, the user will see `123-ABC`.
 
 
+### Multiple masks
+
+You can define multiple mask for your input.  Depending on the input the masking will switch between the defined masks.  
+This can be usefull when the masks are too different to solve it with optional parts.
+
+```javascript
+  $(selector).inputmask({ mask: ["999.999", "aa-aa-aa"]});
+```
+
 ### aliases option
 ### aliases option
 
 
 First you have to create an alias definition (more examples can be found in jquery.inputmask.extensions.js)
 First you have to create an alias definition (more examples can be found in jquery.inputmask.extensions.js)

+ 1 - 1
build.properties

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

BIN
dist/jQuery.InputMask.2.1.22.nupkg


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

@@ -3,7 +3,7 @@
 * http://github.com/RobinHerbots/jquery.inputmask
 * http://github.com/RobinHerbots/jquery.inputmask
 * Copyright (c) 2010 - 2013 Robin Herbots
 * Copyright (c) 2010 - 2013 Robin Herbots
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 * Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-* Version: 2.1.22
+* Version: 2.1.23
 */
 */
 
 
 (function ($) {
 (function ($) {
@@ -1271,7 +1271,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.1.22
+Version: 2.1.23
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -1368,7 +1368,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2012 Robin Herbots
 Copyright (c) 2010 - 2012 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.1.22
+Version: 2.1.23
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */
@@ -1861,7 +1861,7 @@ Input Mask plugin extensions
 http://github.com/RobinHerbots/jquery.inputmask
 http://github.com/RobinHerbots/jquery.inputmask
 Copyright (c) 2010 - 2013 Robin Herbots
 Copyright (c) 2010 - 2013 Robin Herbots
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
 Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
-Version: 2.1.22
+Version: 2.1.23
 
 
 Optional extensions on the jquery.inputmask base
 Optional extensions on the jquery.inputmask base
 */
 */

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


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


+ 1 - 1
jquery.inputmask.jquery.json

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

+ 1 - 0
nuget/jquery.inputmask.nuspec

@@ -25,6 +25,7 @@ Highlights:
 - many features can be enabled/disabled/configured by options
 - many features can be enabled/disabled/configured by options
 - supports readonly/disabled/dir="rtl" attributes
 - supports readonly/disabled/dir="rtl" attributes
 - support data-inputmask attribute
 - support data-inputmask attribute
+- multi-mask support
 </description>
 </description>
         <tags>jQuery, plugins, input, form, inputmask, mask</tags>
         <tags>jQuery, plugins, input, form, inputmask, mask</tags>
     </metadata>
     </metadata>