ソースを参照

make "dd/mm/yyyy" an alias of "date"

Robin Herbots 14 年 前
コミット
ef0eb60fc1
1 ファイル変更4 行追加3 行削除
  1. 4 3
      jquery.inputmask.extentions.js

+ 4 - 3
jquery.inputmask.extentions.js

@@ -6,13 +6,13 @@ Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.p
 
 Optional extentions on the jquery.inputmask base
 */
-
+(function($){
 $.extend($.inputmask.defaults.aliases, {
     'date': {
         mask: "d/m/y"
     },
     'dd/mm/yyyy': {
-        mask: "d/m/y"
+        alias: "date"
     },
     'hh:mm:ss': {
         mask: "h:s:s",
@@ -30,4 +30,5 @@ $.extend($.inputmask.defaults.aliases, {
             }
         }
     }
-});
+});
+})(jQuery);