webshims-rails 0.3 → 0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/webshims-rails.rb +1 -1
- data/lib/webshims-rails/version.rb +2 -2
- data/readme.textile +5 -3
- data/vendor/assets/javascripts/webshims/dev/extras/custom-validity.js +261 -0
- data/vendor/assets/javascripts/webshims/dev/extras/modernizr-custom.js +535 -0
- data/vendor/assets/javascripts/webshims/dev/extras/mousepress.js +60 -0
- data/vendor/assets/javascripts/webshims/dev/polyfiller.js +1171 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/README +62 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/canvas2png.js +42 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.js +28 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/flashcanvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/proxy.php +73 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvas/save.php +49 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/README +82 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/canvas2png.js +42 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash10canvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flash9canvas.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/flashcanvas.js +31 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/proxy.php +73 -0
- data/vendor/assets/javascripts/webshims/dev/shims/FlashCanvasPro/save.php +49 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/1.js +1710 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/10.js +3317 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/11.js +1585 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/12.js +1587 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/13.js +1054 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/14.js +476 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/15.js +314 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/16.js +2101 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/17.js +2264 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/18.js +2161 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/19.js +2244 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/2.js +2294 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/20.js +1607 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/21.js +1635 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/22.js +2409 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/23.js +2168 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/24.js +2777 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/25.js +2204 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/26.js +2863 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/27.js +4079 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/3.js +2971 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/4.js +823 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/5.js +1078 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/59.js +1754 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/6.js +1230 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/7.js +1485 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/8.js +1442 -0
- data/vendor/assets/javascripts/webshims/dev/shims/combos/9.js +2515 -0
- data/vendor/assets/javascripts/webshims/dev/shims/details.js +146 -0
- data/vendor/assets/javascripts/webshims/dev/shims/dom-extend.js +908 -0
- data/vendor/assets/javascripts/webshims/dev/shims/es5.js +802 -0
- data/vendor/assets/javascripts/webshims/dev/shims/excanvas.js +924 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-core.js +660 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-datalist.js +677 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-message.js +164 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-native-extend.js +256 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-native-fix.js +261 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-api.js +384 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-number-date-ui.js +847 -0
- data/vendor/assets/javascripts/webshims/dev/shims/form-shim-extend.js +1472 -0
- data/vendor/assets/javascripts/webshims/dev/shims/geolocation.js +168 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ar.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ch-ZN.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-de.txt +33 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-el.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-en.txt +34 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-es.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-fr.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-he.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hi.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-hu.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-it.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ja.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-nl.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-pt-PT.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-ru.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/i18n/errormessages-sv.js +32 -0
- data/vendor/assets/javascripts/webshims/dev/shims/json-storage.js +308 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/license.txt +1 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/player.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/jwplayer/readme.html +87 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-core.js +534 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-native-fix.js +99 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-swf.js +1074 -0
- data/vendor/assets/javascripts/webshims/dev/shims/mediaelement-yt.js +543 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/details-arrows.png +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/forms.png +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/polyfill-loader.gif +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/styles/shim.css +677 -0
- data/vendor/assets/javascripts/webshims/dev/shims/swf/jwwebshims.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/swf/localStorage.swf +0 -0
- data/vendor/assets/javascripts/webshims/dev/shims/track-ui.js +292 -0
- data/vendor/assets/javascripts/webshims/dev/shims/track.js +763 -0
- data/vendor/assets/javascripts/webshims/minified/extras/modernizr-custom.js +20 -20
- data/vendor/assets/javascripts/webshims/minified/polyfiller.js +29 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/1.js +37 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/10.js +83 -76
- data/vendor/assets/javascripts/webshims/minified/shims/combos/11.js +44 -42
- data/vendor/assets/javascripts/webshims/minified/shims/combos/12.js +43 -38
- data/vendor/assets/javascripts/webshims/minified/shims/combos/13.js +27 -25
- data/vendor/assets/javascripts/webshims/minified/shims/combos/16.js +60 -55
- data/vendor/assets/javascripts/webshims/minified/shims/combos/17.js +68 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/18.js +60 -59
- data/vendor/assets/javascripts/webshims/minified/shims/combos/19.js +66 -64
- data/vendor/assets/javascripts/webshims/minified/shims/combos/2.js +74 -69
- data/vendor/assets/javascripts/webshims/minified/shims/combos/20.js +46 -43
- data/vendor/assets/javascripts/webshims/minified/shims/combos/21.js +52 -47
- data/vendor/assets/javascripts/webshims/minified/shims/combos/22.js +61 -57
- data/vendor/assets/javascripts/webshims/minified/shims/combos/23.js +68 -60
- data/vendor/assets/javascripts/webshims/minified/shims/combos/24.js +82 -77
- data/vendor/assets/javascripts/webshims/minified/shims/combos/25.js +58 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/26.js +80 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/27.js +103 -0
- data/vendor/assets/javascripts/webshims/minified/shims/combos/3.js +96 -91
- data/vendor/assets/javascripts/webshims/minified/shims/combos/4.js +30 -31
- data/vendor/assets/javascripts/webshims/minified/shims/combos/5.js +37 -39
- data/vendor/assets/javascripts/webshims/minified/shims/combos/59.js +59 -61
- data/vendor/assets/javascripts/webshims/minified/shims/combos/6.js +31 -29
- data/vendor/assets/javascripts/webshims/minified/shims/combos/7.js +38 -37
- data/vendor/assets/javascripts/webshims/minified/shims/combos/8.js +38 -33
- data/vendor/assets/javascripts/webshims/minified/shims/combos/9.js +68 -63
- data/vendor/assets/javascripts/webshims/minified/shims/dom-extend.js +22 -20
- data/vendor/assets/javascripts/webshims/minified/shims/es5.js +15 -14
- data/vendor/assets/javascripts/webshims/minified/shims/form-core.js +22 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-datalist.js +22 -22
- data/vendor/assets/javascripts/webshims/minified/shims/form-message.js +8 -9
- data/vendor/assets/javascripts/webshims/minified/shims/form-native-extend.js +7 -8
- data/vendor/assets/javascripts/webshims/minified/shims/form-number-date-ui.js +23 -21
- data/vendor/assets/javascripts/webshims/minified/shims/form-shim-extend.js +44 -33
- data/vendor/assets/javascripts/webshims/minified/shims/i18n/errormessages-sv.js +3 -0
- data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/player.swf +0 -0
- data/vendor/assets/javascripts/webshims/minified/shims/jwplayer/readme.html +86 -86
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-core.js +16 -13
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-swf.js +30 -30
- data/vendor/assets/javascripts/webshims/minified/shims/mediaelement-yt.js +14 -0
- data/vendor/assets/javascripts/webshims/minified/shims/styles/shim.css +71 -10
- data/vendor/assets/javascripts/webshims/minified/shims/track-ui.js +9 -0
- data/vendor/assets/javascripts/webshims/minified/shims/track.js +20 -0
- metadata +101 -5
- data/vendor/assets/javascripts/webshims/minified/shims/form-output.js +0 -5
@@ -1,91 +1,96 @@
|
|
1
|
-
(function(a){var
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
jQuery.webshims.register("form-core",function(a,
|
9
|
-
{valid:1},
|
10
|
-
"willValidate")&&!1===a.prop(
|
11
|
-
a.ownerDocument;return a===
|
12
|
-
|
13
|
-
"checked"==
|
14
|
-
|
15
|
-
t(
|
16
|
-
b){a(
|
17
|
-
showFor:function(
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
0));if(!
|
22
|
-
|
23
|
-
jQuery.webshims.register("form-message",function(a,
|
24
|
-
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){
|
25
|
-
"Value must be at or before {%max}."});
|
26
|
-
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
27
|
-
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
a
|
32
|
-
|
33
|
-
c[
|
34
|
-
if(
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
return function(
|
39
|
-
|
40
|
-
(
|
41
|
-
get:function(){var
|
42
|
-
"textarea","select"],"required",{set:function(
|
43
|
-
a.prop(
|
44
|
-
"maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);
|
45
|
-
"maxLength",{prop:{set:function(
|
46
|
-
"form"+(
|
47
|
-
|
48
|
-
b}}};break;default:
|
49
|
-
|
50
|
-
"stepMismatch"],function(a,
|
51
|
-
|
52
|
-
|
53
|
-
"checkValidity",{prop:{value:function(){a("input",this).each(function(){
|
54
|
-
isChangeSubmit=!1})})();a(i).bind("focusin",function(
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
d
|
65
|
-
|
66
|
-
|
67
|
-
a.
|
68
|
-
|
69
|
-
"").
|
70
|
-
|
71
|
-
|
72
|
-
a.
|
73
|
-
|
74
|
-
"
|
75
|
-
|
76
|
-
a
|
77
|
-
a(
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
"
|
90
|
-
|
91
|
-
!0,a.
|
1
|
+
(function(a){var c=window.Modernizr,k=a.webshims,i=k.bugs,n=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),m=function(){if(n[0].querySelector)try{i.findRequired=!n[0].querySelector("select:required")}catch(a){i.findRequired=!1}};i.findRequired=!1;i.validationMessage=!1;i.valueAsNumberSet=!1;k.capturingEventPrevented=function(c){if(!c._isPolyfilled){var j=c.isDefaultPrevented,
|
2
|
+
d=c.preventDefault;c.preventDefault=function(){clearTimeout(a.data(c.target,c.type+"DefaultPrevented"));a.data(c.target,c.type+"DefaultPrevented",setTimeout(function(){a.removeData(c.target,c.type+"DefaultPrevented")},30));return d.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!j.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||i.bustedValidity)m();else if(k.capturingEvents(["input"]),k.capturingEvents(["invalid"],!0),
|
3
|
+
c.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var j=a("input",n).eq(0),r,v=function(a){k.loader.loadList(["dom-extend"]);k.ready("dom-extend",a)},s=function(i){var o=["form-extend","form-message","form-native-fix"];i&&(i.preventDefault(),i.stopImmediatePropagation());clearTimeout(r);setTimeout(function(){n&&(n.remove(),n=j=null)},9);if(!c.bugfreeformvalidation)k.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),k.modules["form-extend"].test=a.noop;k.isReady("form-number-date-api")&&
|
4
|
+
o.push("form-number-date-api");k.reTest(o);if(j)try{j.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&v(function(){k.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(c){!c&&this&&a.prop(this,"value",a.prop(this,"value"))}});k.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(c){if(!c&&this)c=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(c)}})})}catch(d){}(a.browser.opera||window.testGoodWithFix)&&
|
5
|
+
v(function(){var c=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(d){var h=k.defineNodeNameProperty(d,"checkValidity",{prop:{value:function(){k.fromSubmit||a(this).bind("invalid.checkvalidity",c);k.fromCheckValidity=!0;var b=h.prop._supvalue.apply(this,arguments);k.fromSubmit||a(this).unbind("invalid.checkvalidity",c);k.fromCheckValidity=!1;return b}}})})})};n.appendTo("head");if(window.opera||window.testGoodWithFix){m();i.validationMessage=!j.prop("validationMessage");
|
6
|
+
if((c.inputtypes||{}).date){try{j.prop("valueAsNumber",0)}catch(t){}i.valueAsNumberSet="1970-01-01"!=j.prop("value")}j.prop("value","")}n.bind("submit",function(a){c.bugfreeformvalidation=!1;s(a)});r=setTimeout(function(){n&&n.triggerHandler("submit")},9);a("input, select",n).bind("invalid",s).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&c.bugfreeformvalidation&&!k.bugs.bustedValidity&&function(){var c=/^(?:textarea|input)$/i,
|
7
|
+
i=!1;document.addEventListener("contextmenu",function(a){c.test(a.target.nodeName||"")&&(i=a.target.form)&&setTimeout(function(){i=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&i&&i==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
|
8
|
+
jQuery.webshims.register("form-core",function(a,c,k,i,n,m){var j={radio:1},r={checkbox:1,radio:1},v=a([]),s=c.bugs,t=function(b){var b=a(b),f,c;f=v;if(j[b[0].type])c=b.prop("form"),f=(f=b[0].name)?c?a(c[f]):a(i.getElementsByName(f)).filter(function(){return!a.prop(this,"form")}):b,f=f.filter('[type="radio"]');return f},x=c.getContentValidationMessage=function(b,f,c){var d=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";c&&d[c]&&(d=d[c]);"object"==typeof d&&(f=f||a.prop(b,"validity")||
|
9
|
+
{valid:1},f.valid||a.each(f,function(a,b){if(b&&"valid"!=a&&d[a])return d=d[a],!1}));if("object"==typeof d)d=d.defaultMessage;return d||""},o={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
|
10
|
+
"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!o[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(a){try{var f=
|
11
|
+
a.ownerDocument;return a===f.activeElement&&(!f.hasFocus||f.hasFocus())}catch(c){}return!1};var d=a.event.customEvent||{};(s.bustedValidity||s.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,f=a.find.matchesSelector,c=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,d=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,f=function(f){var l=arguments,l=a.call(l,1,l.length);l.unshift(f.replace(c,d));return b.apply(this,
|
12
|
+
l)},g;for(g in b)b.hasOwnProperty(g)&&(f[g]=b[g]);return f}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(c,d);return f.call(this,a,b)}}();var g=a.prop,p={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,f,c){var d=g.apply(this,arguments);if(b&&"form"in b&&p[f]&&c!==n&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
|
13
|
+
"checked"==f&&c&&t(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return d};var h=function(b,f){var c;a.each(b,function(b,d){if(d)return c="customError"==b?a.prop(f,"validationMessage"):b,!1});return c};a(i).bind(m.validityUIEvents||"focusout change refreshvalidityui",function(b){var f,c;if(b.target&&(f=a(b.target).getNativeElement()[0],!("submit"==f.type||!a.prop(f,"willValidate")||"focusout"==b.type&&"radio"==b.type))){c=a.data(f,"webshimsswitchvalidityclass");var d=function(){var c=
|
14
|
+
a.prop(f,"validity"),d=a(f).getShadowElement(),w,g,z,u;a(f).trigger("refreshCustomValidityRules");c.valid?d.hasClass("form-ui-valid")||(w="form-ui-valid",g="form-ui-invalid",u="changedvaliditystate",z="changedvalid",r[f.type]&&f.checked&&t(f).not(f).removeClass(g).addClass(w).removeAttr("aria-invalid"),a.removeData(f,"webshimsinvalidcause")):(c=h(c,f),a.data(f,"webshimsinvalidcause")!=c&&(a.data(f,"webshimsinvalidcause",c),u="changedvaliditystate"),d.hasClass("form-ui-invalid")||(w="form-ui-invalid",
|
15
|
+
g="form-ui-valid",r[f.type]&&!f.checked&&t(f).not(f).removeClass(g).addClass(w),z="changedinvalid"));w&&(d.addClass(w).removeClass(g),setTimeout(function(){a(f).trigger(z)},0));u&&setTimeout(function(){a(f).trigger(u)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};c&&clearTimeout(c);"refreshvalidityui"==b.type?d():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(d,9))}});d.changedvaliditystate=!0;d.refreshCustomValidityRules=!0;d.changedvalid=!0;d.changedinvalid=!0;d.refreshvalidityui=
|
16
|
+
!0;c.triggerInlineForm=function(b,f){a(b).trigger(f)};c.modules["form-core"].getGroupElements=t;s=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};s();c.ready("DOM",s);c.getRelOffset=function(b,f){var b=a(b),c=a(f).offset(),d;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){d=b.offset()});c.top-=d.top;c.left-=d.left;return c};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
|
17
|
+
"label",f,d=!1,g=!1,y,l={hideDelay:5E3,showFor:function(b,f,c,u){l._create();var b=a(b),q=a(b).getShadowElement(),h=l.getOffsetFromBody(q);l.clear();u?this.hide():(this.getMessage(b,f),this.position(q,h),this.show(),this.hideDelay&&(d=setTimeout(y,this.hideDelay)),a(k).bind("resize.validityalert",function(){clearTimeout(g);g=setTimeout(function(){l.position(q)},9)}));c||this.setFocus(q,h)},getOffsetFromBody:function(a){return c.getRelOffset(f,a)},setFocus:function(d,w){var g=a(d).getShadowFocusElement(),
|
18
|
+
l=c.scrollRoot.scrollTop(),q=(w||g.offset()).top-30,h;c.getID&&"label"==b&&f.attr("for",c.getID(g));l>q&&(c.scrollRoot.animate({scrollTop:q-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(l-q)),80)}),h=!0);try{g[0].focus()}catch(z){}h&&(c.scrollRoot.scrollTop(l),setTimeout(function(){c.scrollRoot.scrollTop(l)},0));setTimeout(function(){a(i).bind("focusout.validityalert",y)},10)},getMessage:function(b,c){c||(c=x(b[0])||b.prop("validationMessage"));c?a("span.va-box",f).text(c):this.hide()},position:function(b,
|
19
|
+
c){c=c?a.extend({},c):l.getOffsetFromBody(b);c.top+=b.outerHeight();f.css(c)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(i).unbind(".validityalert");a(k).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=l.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
20
|
+
b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};y=a.proxy(l,"hide");return l}();(function(){var b,f=[],c;a(i).bind("invalid",function(d){if(!d.wrongWebkitInvalid){var g=a(d.target),l=g.getShadowElement();l.hasClass("form-ui-invalid")||(l.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(d.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
21
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=d.isDefaultPrevented,l=a.Event("firstinvalidsystem"),a(i).triggerHandler(l,{element:d.target,form:d.target.form,isInvalidUIPrevented:d.isDefaultPrevented}),g.trigger(b);b&&b.isDefaultPrevented()&&d.preventDefault();f.push(d.target);d.extraData="fix";clearTimeout(c);c=setTimeout(function(){var c={type:"lastinvalid",cancelable:!1,invalidlist:a(f)};b=!1;f=[];a(d.target).trigger(c,c)},9);l=g=null}})})();a.fn.getErrorMessage=function(){var b="",
|
22
|
+
f=this[0];f&&(b=x(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return b};m.replaceValidationUI&&c.ready("DOM forms",function(){a(i).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
23
|
+
jQuery.webshims.register("form-message",function(a,c,k,i,n,m){var j=c.validityMessages,k=m.overrideMessages||m.customMessages?["customValidationMessage"]:[];j.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
24
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},j.en||j["en-US"]||{});["select","radio"].forEach(function(a){j.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){j.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
|
25
|
+
"time","datetime-local"].forEach(function(a){j.en.rangeOverflow[a]="Value must be at or before {%max}."});j["en-US"]=j["en-US"]||j.en;j[""]=j[""]||j["en-US"];j.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
26
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
27
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},j.de||{});["select","radio"].forEach(function(a){j.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){j.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){j.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
|
28
|
+
var r=j[""];c.createValidationMessage=function(i,j){var k=r[j];k&&"string"!==typeof k&&(k=k[a.prop(i,"type")]||k[(i.nodeName||"").toLowerCase()]||k.defaultMessage);k&&"value,min,max,title,maxlength,label".split(",").forEach(function(m){if(-1!==k.indexOf("{%"+m)){var o=("label"==m?a.trim(a('label[for="'+i.id+'"]',i.form).text()).replace(/\*$|:$/,""):a.attr(i,m))||"";"patternMismatch"==j&&"title"==m&&!o&&c.error("no title for patternMismatch provided. Always add a title attribute.");k=k.replace("{%"+
|
29
|
+
m+"}",o);"value"==m&&(k=k.replace("{%valueLen}",o.length))}});return k||""};(c.bugs.validationMessage||!Modernizr.formvalidation||c.bugs.bustedValidity)&&k.push("validationMessage");c.activeLang({langObj:j,module:"form-core",callback:function(a){r=a}});k.forEach(function(i){c.defineNodeNamesProperty(["fieldset","output","button"],i,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(j){var k=c.defineNodeNameProperty(j,i,{prop:{get:function(){var i=this,j="";if(!a.prop(i,
|
30
|
+
"willValidate"))return j;var d=a.prop(i,"validity")||{valid:1};if(d.valid||(j=c.getContentValidationMessage(i,d)))return j;if(d.customError&&i.nodeName&&(j=Modernizr.formvalidation&&!c.bugs.bustedValidity&&k.prop._supget?k.prop._supget.call(i):c.data(i,"customvalidationMessage")))return j;a.each(d,function(a,d){if("valid"!=a&&d&&(j=c.createValidationMessage(i,a)))return!1});return j||""},writeable:!1}})})})});
|
31
|
+
(!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,c,k,i){c.inputTypes=c.inputTypes||{};var n=c.cfg.forms,m,j=c.inputTypes,r={radio:1,checkbox:1};c.addInputType=function(a,f){j[a]=f};var v={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},s={valueMissing:function(b,f,d){if(!b.prop("required"))return!1;var g=!1;if(!("type"in d))d.type=(b[0].getAttribute("type")||
|
32
|
+
b[0].type||"").toLowerCase();if("select"==d.nodeName){if(f=!f)if(!(f=0>b[0].selectedIndex))b=b[0],f="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=f}else b=r[d.type]?"checkbox"==d.type?!b.is(":checked"):!c.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!f;return b},tooLong:function(){return!1},typeMismatch:function(a,f,c){if(""===f||"select"==c.nodeName)return!1;var d=!1;if(!("type"in c))c.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase();
|
33
|
+
if(j[c.type]&&j[c.type].mismatch)d=j[c.type].mismatch(f,a);else if("validity"in a[0])d=a[0].validity.typeMismatch;return d},patternMismatch:function(a,f,d){if(""===f||"select"==d.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(g){c.error('invalid pattern value: "'+a+'" | '+g),a=!1}return!a?!1:!a.test(f)}};c.addValidityRule=function(a,f){s[a]=f};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b=
|
34
|
+
this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).bind("submit",a.event.special.invalid.handler),c.moveToFirstEvent(b,"submit"),c.bugs.bustedValidity&&a.nodeName(b,"form"))){var f=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");c.data(b,"bustedNoValidate",null==f?null:f)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){m=!0;b.testedValidity=
|
35
|
+
!0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),m=!1;m=!1}}};var t=function(b){if(!a.support.submitBubbles&&b&&"object"==typeof b&&!b._submit_attached)a.event.add(b,"submit._submit",function(a){a._submit_bubble=!0}),b._submit_attached=!0};if(!a.support.submitBubbles&&a.event.special.submit)a.event.special.submit.setup=function(){if(a.nodeName(this,"form"))return!1;a.event.add(this,"click._submit keypress._submit",function(b){b=b.target;b=a.nodeName(b,"input")||a.nodeName(b,
|
36
|
+
"button")?a.prop(b,"form"):void 0;t(b)})};a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var x=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){a.nodeName(this,"form")?a(this).bind("invalid",a.noop):a("form",this).bind("invalid",a.noop);return x.apply(this,arguments)}});a(k).bind("invalid",a.noop);c.addInputType("email",{mismatch:function(){var a=n.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(f){return!a.test(f)}}()});
|
37
|
+
c.addInputType("url",{mismatch:function(){var a=n.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i;
|
38
|
+
return function(f){return!a.test(f)}}()});c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}});c.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},v)}}},"prop");var o=function(b){var f,d=a.prop(b,"validity");if(d)a.data(b,"cachedValidity",
|
39
|
+
d);else return!0;if(!d.valid){f=a.Event("invalid");var g=a(b).trigger(f);if(m&&!o.unhandledInvalids&&!f.isDefaultPrevented())c.validityAlert.showFor(g),o.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return d.valid},d=/^(?:select|textarea|input)/i;c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,f=a(a.prop(this,"elements")).filter(function(){if(!d.test(this.nodeName))return!1;var a=c.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this});
|
40
|
+
o.unhandledInvalids=!1;for(var g=0,h=f.length;g<h;g++)o(f[g])||(b=!1);return b}}});c.defineNodeNamesProperties(["input","textarea","select"],{checkValidity:{value:function(){o.unhandledInvalids=!1;return o(a(this).getNativeElement()[0])}},setCustomValidity:{value:function(b){a.removeData(this,"cachedValidity");c.data(this,"customvalidationMessage",""+b)}},willValidate:{writeable:!1,get:function(){var b={button:1,reset:1,hidden:1,image:1};return function(){var f=a(this).getNativeElement()[0];return!(f.disabled||
|
41
|
+
f.readOnly||b[f.type])}}()},validity:{writeable:!1,get:function(){var b=a(this).getNativeElement(),f=b[0],d=a.data(f,"cachedValidity");if(d)return d;d=a.extend({},v);if(!a.prop(f,"willValidate")||"submit"==f.type)return d;var g=b.val(),h={nodeName:f.nodeName.toLowerCase()};d.customError=!!c.data(f,"customvalidationMessage");if(d.customError)d.valid=!1;a.each(s,function(a,f){if(f(b,g,h))d[a]=!0,d.valid=!1});a(this).getShadowFocusElement().attr("aria-invalid",d.valid?"false":"true");f=b=null;return d}}},
|
42
|
+
"prop");c.defineNodeNamesBooleanProperty(["input","textarea","select"],"required",{set:function(b){a(this).getShadowFocusElement().attr("aria-required",!!b+"")},initAttr:!a.browser.msie||7<c.browserVersion});c.reflectProperties(["input"],["pattern"]);if(!("maxLength"in i.createElement("textarea"))){var g=function(){var b,f=0,c=a([]),d=1E9,g=function(){var a=c.prop("value"),b=a.length;b>f&&b>d&&(b=Math.max(f,d),c.prop("value",a.substr(0,b)));f=b},l=function(){clearTimeout(b);c.unbind(".maxlengthconstraint")};
|
43
|
+
return function(h,i){l();if(-1<i)d=i,f=a.prop(h,"value").length,c=a(h),c.bind("keydown.maxlengthconstraint keypress.maxlengthconstraint paste.maxlengthconstraint cut.maxlengthconstraint",function(){setTimeout(g,0)}),c.bind("keyup.maxlengthconstraint",g),c.bind("blur.maxlengthconstraint",l),b=setInterval(g,200)}}();g.update=function(b,c){a(b).is(":focus")&&(null==c&&(c=a.prop(b,"maxlength")),g(e.target,c))};a(i).bind("focusin",function(b){var c;"TEXTAREA"==b.target.nodeName&&-1<(c=a.prop(b.target,
|
44
|
+
"maxlength"))&&g(b.target,c)});c.defineNodeNameProperty("textarea","maxlength",{attr:{set:function(a){this.setAttribute("maxlength",""+a);g.update(this)},get:function(){var a=this.getAttribute("maxlength");return null==a?void 0:a}},prop:{set:function(a){if("number"==typeof a||a&&a==1*a){if(0>a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);g.update(this,a)}else this.setAttribute("maxlength","0"),g.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==
|
45
|
+
typeof a||a&&a==1*a)&&0<=a?parseInt(a,10):-1}}});c.defineNodeNameProperty("textarea","maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var p={submit:1,button:1,image:1},h={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},
|
46
|
+
{name:"target"},{name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var c="form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),d="form"+b.name,g=b.name,y="click.webshimssubmittermutate"+g,l=function(){if("form"in this&&p[this.type]){var l=a.prop(this,"form");if(l){var h=a.attr(this,d);if(null!=h&&(!b.limitedTo||h.toLowerCase()===a.prop(this,c))){var u=a.attr(l,g);a.attr(l,g,h);setTimeout(function(){if(null!=u)a.attr(l,g,u);else try{a(l).removeAttr(g)}catch(b){l.removeAttribute(g)}},
|
47
|
+
9)}}}};switch(b.proptype){case "url":var j=i.createElement("form");h[c]={prop:{set:function(b){a.attr(this,d,b)},get:function(){var b=a.attr(this,d);if(null==b)return"";j.setAttribute("action",b);return j.action}}};break;case "boolean":h[c]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":h[c]={prop:{set:function(b){a.attr(this,d,b)},get:function(){var c=a.attr(this,
|
48
|
+
d);return!c||(c=c.toLowerCase())&&!b.limitedTo[c]?b.defaultProp:c}}};break;default:h[c]={prop:{set:function(b){a.attr(this,d,b)},get:function(){var b=a.attr(this,d);return null!=b?b:""}}}}h[d]||(h[d]={});h[d].attr={set:function(b){h[d].attr._supset.call(this,b);a(this).unbind(y).bind(y,l)},get:function(){return h[d].attr._supget.call(this)}};h[d].initAttr=!0;h[d].removeAttr={value:function(){a(this).unbind(y);h[d].removeAttr._supvalue.call(this)}}});c.defineNodeNamesProperties(["input","button"],
|
49
|
+
h);!a.support.getSetAttribute&&null==a("<form novalidate></form>").attr("novalidate")?c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):c.bugs.bustedValidity&&(c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){c.data(this,"bustedNoValidate",""+a)},get:function(){var a=c.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){c.data(this,
|
50
|
+
"bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow","stepMismatch"],function(a,c){s[c]=function(a){return(a[0].validity||{})[c]||!1}}));c.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var b={updateInput:1,input:1},d={date:1,time:1,"datetime-local":1},g={focusout:1,blur:1},h=
|
51
|
+
{updateInput:1,change:1},j=function(a){var c,d=!0,f=a.prop("value"),u=f,q=function(c){if(a){var g=a.prop("value");g!==f&&(f=g,(!c||!b[c.type])&&a.trigger("input"));c&&h[c.type]&&(u=g);!d&&g!==u&&a.trigger("change")}},i,j=function(b){clearInterval(c);setTimeout(function(){b&&g[b.type]&&(d=!1);a&&(a.unbind("focusout blur",j).unbind("input change updateInput",q),q());a=null},1)};clearInterval(c);c=setInterval(q,160);clearTimeout(i);i=setTimeout(q,9);a.unbind("focusout blur",j).unbind("input change updateInput",
|
52
|
+
q);a.bind("focusout blur",j).bind("input updateInput change",q)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var c=1,d,f;if("date"==b.type&&(m||!a(b).is(":focus")))if((f=b.value)&&10>f.length&&(f=f.split("-"))&&3==f.length){for(;3>c;c++)if(1==f[c].length)f[c]="0"+f[c];else if(2!=f[c].length){d=!0;break}if(!d)return f=f.join("-"),a.prop(b,"value",f),f}},d,f,g,h;d=c.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return d.prop._supvalue.apply(this,
|
53
|
+
arguments)}}});f=c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return f.prop._supvalue.apply(this,arguments)}}});g=c.defineNodeNameProperty("input","value",{prop:{set:function(){return g.prop._supset.apply(this,arguments)},get:function(){return b(this)||g.prop._supget.apply(this,arguments)}}});h=c.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return h.prop._supget.apply(this,arguments)}}});a(i).bind("change",
|
54
|
+
function(a){isChangeSubmit=!0;b(a.target);isChangeSubmit=!1})})();a(i).bind("focusin",function(b){b.target&&d[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&j(a(b.target))})}();c.addReady(function(b,c){var d;a("form",b).add(c.filter("form")).bind("invalid",a.noop);try{if(b==i&&!("form"in(i.activeElement||{})))(d=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&d.offsetHeight&&d.offsetWidth&&d.focus()}catch(g){}});(!Modernizr.formattribute||
|
55
|
+
!Modernizr.fieldsetdisabled)&&function(){(function(b,c){a.prop=function(d,f,g){var h;if(d&&1==d.nodeType&&g===c&&a.nodeName(d,"form")&&d.id){h=i.getElementsByName(f);if(!h||!h.length)h=i.getElementById(f);if(h&&(h=a(h).filter(function(){return a.prop(this,"form")==d}).get(),h.length))return 1==h.length?h[0]:h}return b.apply(this,arguments)}})(a.prop,void 0);var b=function(b){var c=a.data(b,"webshimsAddedElements");c&&(c.remove(),a.removeData(b,"webshimsAddedElements"))},d=/\r?\n/g,g=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
|
56
|
+
h=/^(?:select|textarea)/i;Modernizr.formattribute||(c.defineNodeNamesProperty(["input","textarea","select","button","fieldset"],"form",{prop:{get:function(){var b=c.contentAttr(this,"form");b&&(b=i.getElementById(b))&&!a.nodeName(b,"form")&&(b=null);return b||this.form},writeable:!1}}),c.defineNodeNamesProperty(["form"],"elements",{prop:{get:function(){var b=this.id,c=a.makeArray(this.elements);b&&(c=a(c).add('input[form="'+b+'"], select[form="'+b+'"], textarea[form="'+b+'"], button[form="'+b+'"], fieldset[form="'+
|
57
|
+
b+'"]').not(".webshims-visual-hide > *").get());return c},writeable:!1}}),a(function(){var c=function(a){a.stopPropagation()};a(i).bind("submit",function(c){if(!c.isDefaultPrevented()){var d=c.target;if(c=d.id)b(d),c=a('input[form="'+c+'"], select[form="'+c+'"], textarea[form="'+c+'"]').filter(function(){return!this.disabled&&this.name&&this.form!=d}).clone(),c.length&&(a.data(d,"webshimsAddedElements",a('<div class="webshims-visual-hide" />').append(c).appendTo(d)),setTimeout(function(){b(d)},9)),
|
58
|
+
c=null}});a(i).bind("click",function(b){if(!b.isDefaultPrevented()&&a(b.target).is('input[type="submit"][form], button[form], input[type="button"][form], input[type="image"][form], input[type="reset"][form]')){var d=a.prop(b.target,"form"),f=b.target.form,g;d&&d!=f&&(g=a(b.target).clone().removeAttr("form").addClass("webshims-visual-hide").bind("click",c).appendTo(d),f&&b.preventDefault(),t(d),g.trigger("click"),setTimeout(function(){g.remove();g=null},9))}})}));Modernizr.fieldsetdisabled||c.defineNodeNamesProperty(["fieldset"],
|
59
|
+
"elements",{prop:{get:function(){return a("input, select, textarea, button, fieldset",this).get()||[]},writeable:!1}});a.fn.serializeArray=function(){return this.map(function(){var b=a.prop(this,"elements");return b?a.makeArray(b):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||h.test(this.nodeName)||g.test(this.type))}).map(function(b,c){var g=a(this).val();return null==g?null:a.isArray(g)?a.map(g,function(a){return{name:c.name,value:a.replace(d,"\r\n")}}):{name:c.name,
|
60
|
+
value:g.replace(d,"\r\n")}}).get()}}();(function(){Modernizr.textareaPlaceholder=!!("placeholder"in a("<textarea />")[0]);var b=a.browser.webkit&&Modernizr.textareaPlaceholder&&535>c.browserVersion;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var d="over"==c.cfg.forms.placeholderType,g=c.cfg.forms.responsivePlaceholder,h=["textarea"];Modernizr.input.placeholder||h.push("input");var i=function(a){try{if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a.createTextRange){var b=
|
61
|
+
a.createTextRange();b.collapse(!0);b.moveEnd("character",0);b.moveStart("character",0);b.select();return!0}}catch(c){}},j=function(b,c,g,h){!1===g&&(g=a.prop(b,"value"));if(!d&&"password"!=b.type){if(!g&&h&&i(b)){var j=setTimeout(function(){i(b)},9);a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),
|
62
|
+
clearTimeout(j),a(b).unbind(".placeholderremove")}).bind("mousedown.placeholderremove drag.placeholderremove select.placeholderremove",function(){i(b);clearTimeout(j);j=setTimeout(function(){i(b)},9)}).bind("blur.placeholderremove",function(){clearTimeout(j);a(b).unbind(".placeholderremove")});return}b.value=g}else if(!g&&h){a(b).unbind(".placeholderremove").bind("keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove",function(d){if(!d||!(17==d.keyCode||
|
63
|
+
16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")}).bind("blur.placeholderremove",function(){a(b).unbind(".placeholderremove")});return}c.box.removeClass("placeholder-visible")},p=function(b,c,g,h,i){if(!h&&(h=a.data(b,"placeHolder"),!h))return;a(b).unbind(".placeholderremove");if("focus"==i||!i&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&j(b,h,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)j(b,h,c);else if(!1===g&&(g=a.attr(b,
|
64
|
+
"placeholder")||""),g&&!c){c=h;!1===g&&(g=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=g;c.box.addClass("placeholder-visible")}else j(b,h,c)},m=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&&!b.attr("aria-labelledby"));!d&&c&&(d=!!a('label[for="'+c+'"]',b[0].form)[0]);d||(c||(c=a.webshims.getID(b)),d=!!a("label #"+c)[0]);return a(d?'<span class="placeholder-text"></span>':'<label for="'+c+'" class="placeholder-text"></label>')},n=function(){var b={text:1,search:1,url:1,
|
65
|
+
email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder"),h;if(c)return c;c=a.data(b,"placeHolder",{});a(b).bind("focus.placeholder blur.placeholder",function(a){p(this,!1,!1,c,a.type);c.box["focus"==a.type?"addClass":"removeClass"]("placeholder-focused")});(h=a.prop(b,"form"))&&a(h).bind("reset.placeholder",function(a){setTimeout(function(){p(b,!1,!1,c,a.type)},0)});if("password"==b.type||d)c.text=m(b),c.box=g||a(b).is(".responsive-width")||-1!=(b.currentStyle||{width:""}).width.indexOf("%")?
|
66
|
+
c.text:a(b).wrap('<span class="placeholder-box placeholder-box-'+(b.nodeName||"").toLowerCase()+" placeholder-box-"+a.css(b,"float")+'" />').parent(),c.text.insertAfter(b).bind("mousedown.placeholder",function(){p(this,!1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1}),a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,f){var g=a.css(b,f);c.text.css(f)!=g&&c.text.css(f,g)}),a.each(["Left","Top"],function(d,f){var g=(parseInt(a.css(b,"padding"+f),10)||
|
67
|
+
0)+Math.max(parseInt(a.css(b,"margin"+f),10)||0,0)+(parseInt(a.css(b,"border"+f+"Width"),10)||0);c.text.css("padding"+f,g)}),a(b).bind("updateshadowdom",function(){var d,f;((f=b.offsetWidth)||(d=b.offsetHeight))&&c.text.css({width:f,height:d}).css(a(b).position())}).triggerHandler("updateshadowdom");else{var i=function(d){a(b).hasClass("placeholder-visible")&&(j(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&p(b,!1,!1,c)},9))};a(k).bind("beforeunload",i);c.box=a(b);h&&
|
68
|
+
a(h).submit(i)}return c},update:function(d,f){var g=(a.attr(d,"type")||a.prop(d,"type")||"").toLowerCase();!b[g]&&!a.nodeName(d,"textarea")?(c.error('placeholder not allowed on input[type="'+g+'"]'),"date"==g&&c.error('but you can use data-placeholder for input[type="date"]')):(g=n.create(d),g.text&&g.text.text(f),p(d,!1,f,g))}}}();a.webshims.publicMethods={pHolder:n};h.forEach(function(a){c.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(c.data(this,"textareaPlaceholder",a),this.placeholder=
|
69
|
+
""):c.contentAttr(this,"placeholder",a);n.update(this,a)},get:function(){return(b?c.data(this,"textareaPlaceholder"):"")||c.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});h.forEach(function(d){var f={},g;["attr","prop"].forEach(function(d){f[d]={set:function(f){var h;b&&(h=c.data(this,"textareaPlaceholder"));h||(h=c.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var i=g[d]._supset.call(this,f);h&&"value"in this&&p(this,f,h);return i},get:function(){return a(this).hasClass("placeholder-visible")?
|
70
|
+
"":g[d]._supget.call(this)}}});g=c.defineNodeNameProperty(d,"value",f)})}})();(function(){if(!("value"in i.createElement("output"))){c.defineNodeNameProperty("output","value",{prop:{set:function(c){var d=a.data(this,"outputShim");d||(d=b(this));d(c)},get:function(){return c.contentAttr(this,"value")||a(this).text()||""}}});c.onNodeNamesPropertyModify("input","value",function(b,c,d){"removeAttr"!=d&&(c=a.data(this,"outputShim"))&&c(b)});var b=function(b){if(!b.getAttribute("aria-live")){var b=a(b),
|
71
|
+
d=(b.text()||"").trim(),g=b.attr("id"),h=b.attr("for"),j=a('<input class="output-shim" type="text" disabled name="'+(b.attr("name")||"")+'" value="'+d+'" style="display: none !important;" />').insertAfter(b),p=j[0].form||i,k=function(a){j[0].value=a;a=j[0].value;b.text(a);c.contentAttr(b[0],"value",a)};b[0].defaultValue=d;c.contentAttr(b[0],"value",d);b.attr({"aria-live":"polite"});g&&(j.attr("id",g),b.attr("aria-labelledby",c.getID(a('label[for="'+g+'"]',p))));h&&(g=c.getID(b),h.split(" ").forEach(function(a){(a=
|
72
|
+
i.getElementById(a))&&a.setAttribute("aria-controls",g)}));b.data("outputShim",k);j.data("outputShim",k);return k}};c.addReady(function(c,d){a("output",c).add(d.filter("output")).each(function(){b(this)})});(function(){var b={updateInput:1,input:1},d={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},g=function(a){var d,g=a.prop("value"),h=function(d){if(a){var h=a.prop("value");h!==g&&(g=h,(!d||!b[d.type])&&c.triggerInlineForm&&c.triggerInlineForm(a[0],"input"))}},i,j=function(){clearTimeout(i);
|
73
|
+
i=setTimeout(h,9)},p=function(){a.unbind("focusout",p).unbind("keyup keypress keydown paste cut",j).unbind("input change updateInput",h);clearInterval(d);setTimeout(function(){h();a=null},1)};clearInterval(d);d=setInterval(h,99);j();a.bind("keyup keypress keydown paste cut",j).bind("focusout",p).bind("input updateInput change",h)};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(i).bind("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||
|
74
|
+
"").toLowerCase()&&!d[b.target.type]&&g(a(b.target))})})()}})()});
|
75
|
+
jQuery.webshims.register("form-datalist",function(a,c,k,i,n){c.propTypes.element=function(k){c.createPropDefault(k,"attr");if(!k.prop)k.prop={get:function(){var c=k.attr.get.call(this);c&&(c=i.getElementById(c))&&k.propNodeName&&!a.nodeName(c,k.propNodeName)&&(c=null);return c||null},writeable:!1}};(function(){var m=a.webshims.cfg.forms,j=Modernizr.input.list;if(!j||m.customDatalist){var r=0,v={submit:1,button:1,reset:1,hidden:1,range:1,date:1},s=a.browser.msie&&7>parseInt(a.browser.version,10),t=
|
76
|
+
{},x=function(a){if(!a)return[];if(t[a])return t[a];var c;try{c=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(i){}t[a]=c||[];return c||[]},o={_create:function(c){if(!v[a.prop(c.input,"type")]){var g=c.datalist,i=a.data(c.input,"datalistWidget");if(g&&i&&i.datalist!==g)i.datalist=g,i.id=c.id,i.shadowList.prop("className","datalist-polyfill "+(i.datalist.className||"")+" "+i.datalist.id+"-shadowdom"),m.positionDatalist?i.shadowList.insertAfter(c.input):i.shadowList.appendTo("body"),
|
77
|
+
a(i.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(i,"_resetListCached")),i._resetListCached();else if(g){if(!(i&&i.datalist===g)){r++;var h=this;this.hideList=a.proxy(h,"hideList");this.timedHide=function(){clearTimeout(h.hideTimer);h.hideTimer=setTimeout(h.hideList,9)};this.datalist=g;this.id=c.id;this.hasViewableData=!0;this._autocomplete=a.attr(c.input,"autocomplete");a.data(c.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+
|
78
|
+
(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');m.positionDatalist||a(c.input).hasClass("position-datalist")?this.shadowList.insertAfter(c.input):this.shadowList.appendTo("body");this.index=-1;this.input=c.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(b){var f=a("li:not(.hidden-item)",h.shadowList),g="mousedown"==b.type||"click"==b.type;h.markItem(f.index(b.currentTarget),g,f);"click"==
|
79
|
+
b.type&&(h.hideList(),m.customDatalist&&a(c.input).trigger("datalistselect"));return"mousedown"!=b.type}).bind("focusout",this.timedHide);c.input.setAttribute("autocomplete","off");a(c.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!h.triggeredByDatalist)h.changedValue=!1,h.showHideOptions()}).bind("keydown.datalistWidget",function(b){var f=b.keyCode,g;if(40==f&&!h.showList())return h.markItem(h.index+1,!0),!1;if(h.isListVisible){if(38==f)return h.markItem(h.index-
|
80
|
+
1,!0),!1;if(!b.shiftKey&&(33==f||36==f))return h.markItem(0,!0),!1;if(!b.shiftKey&&(34==f||35==f))return b=a("li:not(.hidden-item)",h.shadowList),h.markItem(b.length-1,!0,b),!1;if(13==f||27==f)return 13==f&&(g=a("li.active-item:not(.hidden-item)",h.shadowList),h.changeValue(a("li.active-item:not(.hidden-item)",h.shadowList))),h.hideList(),m.customDatalist&&g&&g[0]&&a(c.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&h.showList()}).bind("mousedown.datalistWidget",
|
81
|
+
function(){a(this).is(":focus")&&h.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();c.input.form&&(c.input.name||c.input.id)&&a(c.input.form).bind("submit.datalistWidget"+c.input.id,function(){if(!a(c.input).hasClass("no-datalist-cache")&&"off"!=h._autocomplete){var b=a.prop(c.input,"value"),f=(c.input.name||c.input.id)+a.prop(c.input,"type");
|
82
|
+
if(!h.storedOptions)h.storedOptions=x(f);if(b&&-1==h.storedOptions.indexOf(b)&&(h.storedOptions.push(b),b=h.storedOptions,f)){b=b||[];try{localStorage.setItem("storedDatalistOptions"+f,JSON.stringify(b))}catch(g){}}}});a(k).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){h.destroy()})}}else i&&i.destroy()}},destroy:function(){var c=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(i).unbind(".datalist"+
|
83
|
+
this.id);a(k).unbind(".datalist"+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");c===n?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",c)},_resetListCached:function(a){var g=this,j;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(k.QUnit||(j=a&&i.activeElement==g.input)?g.updateListOptions(j):c.ready("WINDOWLOAD",function(){g.updateTimer=
|
84
|
+
setTimeout(function(){g.updateListOptions();g=null;r=1},200+100*r)}))},updateListOptions:function(c){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),fontFamily:a.css(this.input,"fontFamily")});this.searchStart=m.customDatalist&&a(this.input).hasClass("search-start");var g=[],i=[],h=[],b,f,j,k;for(f=a.prop(this.datalist,"options"),j=0,k=f.length;j<k;j++){b=f[j];if(b.disabled)return;b={value:a(b).val()||"",text:a.trim(a.attr(b,
|
85
|
+
"label")||b.textContent||b.innerText||a.text([b])||""),className:b.className||"",style:a.attr(b,"style")||""};b.text?b.text!=b.value&&(b.className+=" different-label-value"):b.text=b.value;i[j]=b.value;h[j]=b}if(!this.storedOptions)this.storedOptions=a(this.input).hasClass("no-datalist-cache")||"off"==this._autocomplete?[]:x((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==i.indexOf(a)&&h.push({value:a,text:a,className:"stored-suggest",style:""})});
|
86
|
+
for(j=0,k=h.length;j<k;j++)f=h[j],g[j]='<li class="'+f.className+'" style="'+f.style+'" tabindex="-1" role="listitem"><span class="option-label">'+f.text+'</span> <span class="option-value">'+f.value+"</span></li>";this.arrayOptions=h;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+g.join("\n")+"</ul></div></div>");a.fn.bgIframe&&s&&this.shadowList.bgIframe();(c||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(c){var g=a.prop(this.input,
|
87
|
+
"value").toLowerCase();if(!(g===this.lastUpdatedValue||this.lastUnfoundValue&&0===g.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=g;var i=!1,h=this.searchStart,b=a("li",this.shadowList);g?this.arrayOptions.forEach(function(c,d){var j;if(!("lowerText"in c))c.lowerText=c.text!=c.value?c.value.toLowerCase()+c.text.toLowerCase():c.text.toLowerCase();j=c.lowerText.indexOf(g);(j=h?!j:-1!==j)?(a(b[d]).removeClass("hidden-item"),i=!0):a(b[d]).addClass("hidden-item")}):b.length&&(b.removeClass("hidden-item"),
|
88
|
+
i=!0);this.hasViewableData=i;!c&&i&&this.showList();if(!i)this.lastUnfoundValue=g,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var d=m.positionDatalist?a(this.input).position():c.getRelOffset(this.shadowList,this.input);d.top+=a(this.input).outerHeight();d.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",
|
89
|
+
marginLeft:"",marginRight:"",marginBottom:""}).css(d);return d},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var c=this;c.setPos();c.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");a(k).unbind(".datalist"+c.id);a(i).unbind(".datalist"+c.id).bind("mousedown.datalist"+c.id+" focusin.datalist"+c.id,function(g){g.target===c.input||
|
90
|
+
c.shadowList[0]===g.target||a.contains(c.shadowList[0],g.target)?(clearTimeout(c.hideTimer),setTimeout(function(){clearTimeout(c.hideTimer)},9)):c.timedHide()}).bind("updateshadowdom.datalist"+c.id,function(){c.setPos()});return!0},hideList:function(){if(!this.isListVisible)return!1;var d=this,g=function(){d.changedValue&&a(d.input).trigger("change");d.changedValue=!1};d.shadowList.removeClass("datalist-visible list-item-active");d.index=-1;d.isListVisible=!1;if(d.changedValue){d.triggeredByDatalist=
|
91
|
+
!0;c.triggerInlineForm&&c.triggerInlineForm(d.input,"input");if(a(d.input).is(":focus"))a(d.input).one("blur",g);else g();d.triggeredByDatalist=!1}a(i).unbind(".datalist"+d.id);a(k).unbind(".datalist"+d.id).one("resize.datalist"+d.id,function(){d.shadowList.css({top:0,left:0})});return!0},scrollIntoView:function(c){var g=a("ul",this.shadowList),i=a("div.datalist-box",this.shadowList),h=c.position();h.top-=(parseInt(g.css("paddingTop"),10)||0)+(parseInt(g.css("marginTop"),10)||0)+(parseInt(g.css("borderTopWidth"),
|
92
|
+
10)||0);0>h.top?i.scrollTop(i.scrollTop()+h.top-2):(h.top+=c.outerHeight(),c=i.height(),h.top>c&&i.scrollTop(i.scrollTop()+(h.top-c)+2))},changeValue:function(c){if(c[0]){var c=a("span.option-value",c).text(),g=a.prop(this.input,"value");if(c!=g)a(this.input).prop("value",c).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(c,g,i){i=i||a("li:not(.hidden-item)",this.shadowList);if(i.length)0>c?c=i.length-1:c>=i.length&&(c=0),i.removeClass("active-item"),this.shadowList.addClass("list-item-active"),
|
93
|
+
i=i.filter(":eq("+c+")").addClass("active-item"),g&&(this.changeValue(i),this.scrollIntoView(i)),this.index=c}};(function(){j||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var d=a("select",this);d[0]?d=d[0].options:(d=a("option",this).get(),d.length&&c.warn("you should wrap your option-elements for a datalist in a select element to support IE and other old browsers."));return d}}});var d={autocomplete:{attr:{get:function(){var c=a.data(this,"datalistWidget");return c?
|
94
|
+
c._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(c){var d=a.data(this,"datalistWidget");d?(d._autocomplete=c,"off"==c&&d.hideList()):"autocomplete"in this?this.autocomplete=c:this.setAttribute("autocomplete",c)}}}};j?((a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var c=this.options||[];if(!c.length){var d=a("select",this);
|
95
|
+
if(d[0]&&d[0].options&&d[0].options.length)c=d[0].options}return c}}}),d.list={attr:{get:function(){var d=c.contentAttr(this,"list");null!=d?this.removeAttribute("list"):d=a.data(this,"datalistListAttr");return null==d?n:d},set:function(d){a.data(this,"datalistListAttr",d);c.objectCreate(o,n,{input:this,id:d,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}):d.list={attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?n:a},set:function(d){c.contentAttr(this,
|
96
|
+
"list",d);c.objectCreate(o,n,{input:this,id:d,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",d);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,c){c.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
@@ -1,31 +1,30 @@
|
|
1
|
-
(function(a){var
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
jQuery.webshims.register("form-core",function(a,
|
9
|
-
{valid:1},
|
10
|
-
"willValidate")&&!1===a.prop(
|
11
|
-
a.ownerDocument;return a===
|
12
|
-
|
13
|
-
"checked"==
|
14
|
-
|
15
|
-
|
16
|
-
b){a(
|
17
|
-
showFor:function(c,
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
0));if(!
|
22
|
-
|
23
|
-
jQuery.webshims.register("form-message",function(a,
|
24
|
-
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}};["select","radio"].forEach(function(a){
|
25
|
-
"Value must be at or before {%max}."});
|
26
|
-
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
27
|
-
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}};["select","radio"].forEach(function(a){
|
28
|
-
|
29
|
-
|
30
|
-
"
|
31
|
-
a&&f&&(e=b.createValidationMessage(d,a)))return!1});return e||""},writeable:!1}})})})});
|
1
|
+
(function(a){var c=window.Modernizr,h=a.webshims,g=h.bugs,k=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),n=function(){if(k[0].querySelector)try{g.findRequired=!k[0].querySelector("select:required")}catch(a){g.findRequired=!1}};g.findRequired=!1;g.validationMessage=!1;g.valueAsNumberSet=!1;h.capturingEventPrevented=function(e){if(!e._isPolyfilled){var c=e.isDefaultPrevented,
|
2
|
+
d=e.preventDefault;e.preventDefault=function(){clearTimeout(a.data(e.target,e.type+"DefaultPrevented"));a.data(e.target,e.type+"DefaultPrevented",setTimeout(function(){a.removeData(e.target,e.type+"DefaultPrevented")},30));return d.apply(this,arguments)};e.isDefaultPrevented=function(){return!(!c.apply(this,arguments)&&!a.data(e.target,e.type+"DefaultPrevented"))};e._isPolyfilled=!0}};if(!c.formvalidation||g.bustedValidity)n();else if(h.capturingEvents(["input"]),h.capturingEvents(["invalid"],!0),
|
3
|
+
c.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var d=a("input",k).eq(0),o,j=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)},m=function(e){var i=["form-extend","form-message","form-native-fix"];e&&(e.preventDefault(),e.stopImmediatePropagation());clearTimeout(o);setTimeout(function(){k&&(k.remove(),k=d=null)},9);if(!c.bugfreeformvalidation)h.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),h.modules["form-extend"].test=a.noop;h.isReady("form-number-date-api")&&
|
4
|
+
i.push("form-number-date-api");h.reTest(i);if(d)try{d.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&j(function(){h.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(e){!e&&this&&a.prop(this,"value",a.prop(this,"value"))}});h.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(e){if(!e&&this)e=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(e)}})})}catch(l){}(a.browser.opera||window.testGoodWithFix)&&
|
5
|
+
j(function(){var e=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var d=h.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){h.fromSubmit||a(this).bind("invalid.checkvalidity",e);h.fromCheckValidity=!0;var b=d.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity",e);h.fromCheckValidity=!1;return b}}})})})};k.appendTo("head");if(window.opera||window.testGoodWithFix){n();g.validationMessage=!d.prop("validationMessage");
|
6
|
+
if((c.inputtypes||{}).date){try{d.prop("valueAsNumber",0)}catch(l){}g.valueAsNumberSet="1970-01-01"!=d.prop("value")}d.prop("value","")}k.bind("submit",function(a){c.bugfreeformvalidation=!1;m(a)});o=setTimeout(function(){k&&k.triggerHandler("submit")},9);a("input, select",k).bind("invalid",m).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&c.bugfreeformvalidation&&!h.bugs.bustedValidity&&function(){var e=/^(?:textarea|input)$/i,
|
7
|
+
c=!1;document.addEventListener("contextmenu",function(a){e.test(a.target.nodeName||"")&&(c=a.target.form)&&setTimeout(function(){c=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&c&&c==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
|
8
|
+
jQuery.webshims.register("form-core",function(a,c,h,g,k,n){var d={radio:1},o={checkbox:1,radio:1},j=a([]),m=c.bugs,l=function(b){var b=a(b),f,e;f=j;if(d[b[0].type])e=b.prop("form"),f=(f=b[0].name)?e?a(e[f]):a(g.getElementsByName(f)).filter(function(){return!a.prop(this,"form")}):b,f=f.filter('[type="radio"]');return f},e=c.getContentValidationMessage=function(b,f,e){var c=a(b).data("errormessage")||b.getAttribute("x-moz-errormessage")||"";e&&c[e]&&(c=c[e]);"object"==typeof c&&(f=f||a.prop(b,"validity")||
|
9
|
+
{valid:1},f.valid||a.each(f,function(a,b){if(b&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},i={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(b){return!(!a.prop(b,"willValidate")||!(a.prop(b,"validity")||{valid:1}).valid)},"invalid-element":function(b){return!(!a.prop(b,"willValidate")||(a.prop(b,"validity")||{valid:1}).valid)},"required-element":function(b){return!(!a.prop(b,"willValidate")||!a.prop(b,"required"))},"optional-element":function(b){return!!(a.prop(b,
|
10
|
+
"willValidate")&&!1===a.prop(b,"required"))},"in-range":function(b){if(!i[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||b.rangeOverflow||b.rangeUnderflow)},"out-of-range":function(b){if(!i[a.prop(b,"type")]||!a.prop(b,"willValidate"))return!1;b=a.prop(b,"validity");return!(!b||!b.rangeOverflow&&!b.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(b){a.expr[":"][b]=a.expr.filters[b+"-element"]});a.expr[":"].focus=function(a){try{var f=
|
11
|
+
a.ownerDocument;return a===f.activeElement&&(!f.hasFocus||f.hasFocus())}catch(c){}return!1};var p=a.event.customEvent||{};(m.bustedValidity||m.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var b=a.find,f=a.find.matchesSelector,c=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,e=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,f=function(f){var d=arguments,d=a.call(d,1,d.length);d.unshift(f.replace(c,e));return b.apply(this,
|
12
|
+
d)},d;for(d in b)b.hasOwnProperty(d)&&(f[d]=b[d]);return f}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",g.documentElement))a.find.matchesSelector=function(a,b){b=b.replace(c,e);return f.call(this,a,b)}}();var q=a.prop,r={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(b,f,c){var e=q.apply(this,arguments);if(b&&"form"in b&&r[f]&&c!==k&&a(b).hasClass("form-ui-invalid")&&(a.prop(b,"validity")||{valid:1}).valid)a(b).getShadowElement().removeClass("form-ui-invalid"),
|
13
|
+
"checked"==f&&c&&l(b).not(b).removeClass("form-ui-invalid").removeAttr("aria-invalid");return e};var s=function(b,f){var c;a.each(b,function(b,e){if(e)return c="customError"==b?a.prop(f,"validationMessage"):b,!1});return c};a(g).bind(n.validityUIEvents||"focusout change refreshvalidityui",function(b){var f,c;if(b.target&&(f=a(b.target).getNativeElement()[0],!("submit"==f.type||!a.prop(f,"willValidate")||"focusout"==b.type&&"radio"==b.type))){c=a.data(f,"webshimsswitchvalidityclass");var e=function(){var c=
|
14
|
+
a.prop(f,"validity"),e=a(f).getShadowElement(),d,j,h,g;a(f).trigger("refreshCustomValidityRules");c.valid?e.hasClass("form-ui-valid")||(d="form-ui-valid",j="form-ui-invalid",g="changedvaliditystate",h="changedvalid",o[f.type]&&f.checked&&l(f).not(f).removeClass(j).addClass(d).removeAttr("aria-invalid"),a.removeData(f,"webshimsinvalidcause")):(c=s(c,f),a.data(f,"webshimsinvalidcause")!=c&&(a.data(f,"webshimsinvalidcause",c),g="changedvaliditystate"),e.hasClass("form-ui-invalid")||(d="form-ui-invalid",
|
15
|
+
j="form-ui-valid",o[f.type]&&!f.checked&&l(f).not(f).removeClass(j).addClass(d),h="changedinvalid"));d&&(e.addClass(d).removeClass(j),setTimeout(function(){a(f).trigger(h)},0));g&&setTimeout(function(){a(f).trigger(g)},0);a.removeData(b.target,"webshimsswitchvalidityclass")};c&&clearTimeout(c);"refreshvalidityui"==b.type?e():a.data(b.target,"webshimsswitchvalidityclass",setTimeout(e,9))}});p.changedvaliditystate=!0;p.refreshCustomValidityRules=!0;p.changedvalid=!0;p.changedinvalid=!0;p.refreshvalidityui=
|
16
|
+
!0;c.triggerInlineForm=function(b,c){a(b).trigger(c)};c.modules["form-core"].getGroupElements=l;m=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==g.compatMode?a(g.body):a(g.documentElement)};m();c.ready("DOM",m);c.getRelOffset=function(b,c){var b=a(b),e=a(c).offset(),d;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){d=b.offset()});e.top-=d.top;e.left-=d.left;return e};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
|
17
|
+
"label",f,d=!1,j=!1,l,i={hideDelay:5E3,showFor:function(b,c,e,f){i._create();var b=a(b),g=a(b).getShadowElement(),k=i.getOffsetFromBody(g);i.clear();f?this.hide():(this.getMessage(b,c),this.position(g,k),this.show(),this.hideDelay&&(d=setTimeout(l,this.hideDelay)),a(h).bind("resize.validityalert",function(){clearTimeout(j);j=setTimeout(function(){i.position(g)},9)}));e||this.setFocus(g,k)},getOffsetFromBody:function(a){return c.getRelOffset(f,a)},setFocus:function(e,d){var j=a(e).getShadowFocusElement(),
|
18
|
+
h=c.scrollRoot.scrollTop(),i=(d||j.offset()).top-30,k;c.getID&&"label"==b&&f.attr("for",c.getID(j));h>i&&(c.scrollRoot.animate({scrollTop:i-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(h-i)),80)}),k=!0);try{j[0].focus()}catch(m){}k&&(c.scrollRoot.scrollTop(h),setTimeout(function(){c.scrollRoot.scrollTop(h)},0));setTimeout(function(){a(g).bind("focusout.validityalert",l)},10)},getMessage:function(b,c){c||(c=e(b[0])||b.prop("validationMessage"));c?a("span.va-box",f).text(c):this.hide()},position:function(b,
|
19
|
+
c){c=c?a.extend({},c):i.getOffsetFromBody(b);c.top+=b.outerHeight();f.css(c)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(d);a(g).unbind(".validityalert");a(h).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=i.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
20
|
+
b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};l=a.proxy(i,"hide");return i}();(function(){var b,c=[],e;a(g).bind("invalid",function(d){if(!d.wrongWebkitInvalid){var j=a(d.target),h=j.getShadowElement();h.hasClass("form-ui-invalid")||(h.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(d.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
21
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=d.isDefaultPrevented,h=a.Event("firstinvalidsystem"),a(g).triggerHandler(h,{element:d.target,form:d.target.form,isInvalidUIPrevented:d.isDefaultPrevented}),j.trigger(b);b&&b.isDefaultPrevented()&&d.preventDefault();c.push(d.target);d.extraData="fix";clearTimeout(e);e=setTimeout(function(){var e={type:"lastinvalid",cancelable:!1,invalidlist:a(c)};b=!1;c=[];a(d.target).trigger(e,e)},9);h=j=null}})})();a.fn.getErrorMessage=function(){var b="",
|
22
|
+
c=this[0];c&&(b=e(c)||a.prop(c,"customValidationMessage")||a.prop(c,"validationMessage"));return b};n.replaceValidationUI&&c.ready("DOM forms",function(){a(g).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
23
|
+
jQuery.webshims.register("form-message",function(a,c,h,g,k,n){var d=c.validityMessages,h=n.overrideMessages||n.customMessages?["customValidationMessage"]:[];d.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
24
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},d.en||d["en-US"]||{});["select","radio"].forEach(function(a){d.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){d.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
|
25
|
+
"time","datetime-local"].forEach(function(a){d.en.rangeOverflow[a]="Value must be at or before {%max}."});d["en-US"]=d["en-US"]||d.en;d[""]=d[""]||d["en-US"];d.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
26
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
27
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},d.de||{});["select","radio"].forEach(function(a){d.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){d.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){d.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
|
28
|
+
var o=d[""];c.createValidationMessage=function(d,h){var g=o[h];g&&"string"!==typeof g&&(g=g[a.prop(d,"type")]||g[(d.nodeName||"").toLowerCase()]||g.defaultMessage);g&&"value,min,max,title,maxlength,label".split(",").forEach(function(e){if(-1!==g.indexOf("{%"+e)){var i=("label"==e?a.trim(a('label[for="'+d.id+'"]',d.form).text()).replace(/\*$|:$/,""):a.attr(d,e))||"";"patternMismatch"==h&&"title"==e&&!i&&c.error("no title for patternMismatch provided. Always add a title attribute.");g=g.replace("{%"+
|
29
|
+
e+"}",i);"value"==e&&(g=g.replace("{%valueLen}",i.length))}});return g||""};(c.bugs.validationMessage||!Modernizr.formvalidation||c.bugs.bustedValidity)&&h.push("validationMessage");c.activeLang({langObj:d,module:"form-core",callback:function(a){o=a}});h.forEach(function(d){c.defineNodeNamesProperty(["fieldset","output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(g){var h=c.defineNodeNameProperty(g,d,{prop:{get:function(){var e=this,d="";if(!a.prop(e,
|
30
|
+
"willValidate"))return d;var g=a.prop(e,"validity")||{valid:1};if(g.valid||(d=c.getContentValidationMessage(e,g)))return d;if(g.customError&&e.nodeName&&(d=Modernizr.formvalidation&&!c.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(e):c.data(e,"customvalidationMessage")))return d;a.each(g,function(a,g){if("valid"!=a&&g&&(d=c.createValidationMessage(e,a)))return!1});return d||""},writeable:!1}})})})});
|
@@ -1,39 +1,37 @@
|
|
1
|
-
jQuery.webshims.register("form-extend",function(a,b,
|
2
|
-
!
|
3
|
-
"setCustomValidity",{prop:{value:function(
|
4
|
-
"input"==
|
5
|
-
|
6
|
-
|
7
|
-
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var c=this,
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
d
|
25
|
-
|
26
|
-
|
27
|
-
c
|
28
|
-
|
29
|
-
0
|
30
|
-
f=
|
31
|
-
|
32
|
-
|
33
|
-
"
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
"output","button"],f,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(e){var h=b.defineNodeNameProperty(e,f,{prop:{get:function(){var d=this,e="";if(!a.prop(d,"willValidate"))return e;var f=a.prop(d,"validity")||{valid:1};if(f.valid||(e=b.getContentValidationMessage(d,f)))return e;if(f.customError&&d.nodeName&&(e=Modernizr.formvalidation&&!b.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(d):b.data(d,"customvalidationMessage")))return e;a.each(f,function(a,f){if("valid"!=
|
39
|
-
a&&f&&(e=b.createValidationMessage(d,a)))return!1});return e||""},writeable:!1}})})})});
|
1
|
+
jQuery.webshims.register("form-extend",function(a,b,f,i,l,m){f=f.Modernizr;l=f.inputtypes;if(f.formvalidation&&!b.bugs.bustedValidity){var h=b.inputTypes,p={};b.addInputType=function(a,c){h[a]=c};b.addValidityRule=function(a,c){p[a]=c};b.addValidityRule("typeMismatch",function(a,c,e,b){if(""===c)return!1;b=b.typeMismatch;if(!("type"in e))e.type=(a[0].getAttribute("type")||"").toLowerCase();h[e.type]&&h[e.type].mismatch&&(b=h[e.type].mismatch(c,a));return b});var d=m.overrideMessages,o=!l.number||
|
2
|
+
!l.time||!l.range||d,r="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),m=d?["value","checked"]:["value"],g=[],n=function(j,c){if(j){var e=(j.getAttribute&&j.getAttribute("type")||j.type||"").toLowerCase();if(d||h[e])d&&!c&&"radio"==e&&j.name?a(i.getElementsByName(j.name)).each(function(){a.prop(this,"validity")}):a.prop(j,"validity")}},q={};["input","textarea","select"].forEach(function(j){var c=b.defineNodeNameProperty(j,
|
3
|
+
"setCustomValidity",{prop:{value:function(e){var e=e+"",g="input"==j?a(this).getNativeElement()[0]:this;c.prop._supvalue.call(g,e);b.bugs.validationMessage&&b.data(g,"customvalidationMessage",e);o&&(b.data(g,"hasCustomError",!!e),n(g))}}});q[j]=c.prop._supvalue});if(o||d)m.push("min"),m.push("max"),m.push("step"),g.push("input");d&&(m.push("required"),m.push("pattern"),g.push("select"),g.push("textarea"));if(o){var s;g.forEach(function(j){var c=b.defineNodeNameProperty(j,"validity",{prop:{get:function(){if(!s){var e=
|
4
|
+
"input"==j?a(this).getNativeElement()[0]:this,g=c.prop._supget.call(e);if(!g)return g;var k={};r.forEach(function(a){k[a]=g[a]});if(!a.prop(e,"willValidate"))return k;s=!0;var v=a(e),n={type:(e.getAttribute&&e.getAttribute("type")||"").toLowerCase(),nodeName:(e.nodeName||"").toLowerCase()},f=v.val(),i=!!b.data(e,"hasCustomError"),l;s=!1;k.customError=i;if(k.valid&&k.customError)k.valid=!1;else if(!k.valid){var m=!0;a.each(k,function(a,c){if(c)return m=!1});if(m)k.valid=!0}a.each(p,function(a,c){k[a]=
|
5
|
+
c(v,f,n,k);if(k[a]&&(k.valid||!l)&&(d||h[n.type]&&h[n.type].mismatch))q[j].call(e,b.createValidationMessage(e,a)),k.valid=!1,l=!0});k.valid?(q[j].call(e,""),b.data(e,"hasCustomError",!1)):d&&!l&&!i&&a.each(k,function(a,c){if("valid"!==a&&c)return q[j].call(e,b.createValidationMessage(e,a)),!1});return k}},writeable:!1}})});m.forEach(function(a){b.onNodeNamesPropertyModify(g,a,function(){n(this)})});if(i.addEventListener){var t,u=function(c){if("form"in c.target){var b=c.target.form;clearTimeout(t);
|
6
|
+
n(c.target);b&&d&&a("input",b).each(function(){"password"==this.type&&n(this)})}};i.addEventListener("change",u,!0);d&&(i.addEventListener("blur",u,!0),i.addEventListener("keydown",function(a){13==a.keyCode&&u(a)},!0));i.addEventListener("input",function(a){clearTimeout(t);t=setTimeout(function(){n(a.target)},290)},!0)}var c=g.join(",");b.addReady(function(j,b){a(c,j).add(b.filter(c)).each(function(){a.prop(this,"validity")})});d&&b.ready("DOM form-message",function(){b.activeLang({register:"form-core",
|
7
|
+
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!b.data(this,"hasCustomError")){var c=this,g=a.prop(c,"validity")||{valid:!0},e;g.valid||(e=(c.nodeName||"").toLowerCase(),a.each(g,function(a,g){if("valid"!==a&&g)return q[e].call(c,b.createValidationMessage(c,a)),!1}))}})}})})}b.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return b.inputTypes[a]?a:this.type}}})}});
|
8
|
+
(function(a){var b=window.Modernizr,f=a.webshims,i=f.bugs,l=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),m=function(){if(l[0].querySelector)try{i.findRequired=!l[0].querySelector("select:required")}catch(a){i.findRequired=!1}};i.findRequired=!1;i.validationMessage=!1;i.valueAsNumberSet=!1;f.capturingEventPrevented=function(b){if(!b._isPolyfilled){var d=b.isDefaultPrevented,
|
9
|
+
h=b.preventDefault;b.preventDefault=function(){clearTimeout(a.data(b.target,b.type+"DefaultPrevented"));a.data(b.target,b.type+"DefaultPrevented",setTimeout(function(){a.removeData(b.target,b.type+"DefaultPrevented")},30));return h.apply(this,arguments)};b.isDefaultPrevented=function(){return!(!d.apply(this,arguments)&&!a.data(b.target,b.type+"DefaultPrevented"))};b._isPolyfilled=!0}};if(!b.formvalidation||i.bustedValidity)m();else if(f.capturingEvents(["input"]),f.capturingEvents(["invalid"],!0),
|
10
|
+
b.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var h=a("input",l).eq(0),p,d=function(a){f.loader.loadList(["dom-extend"]);f.ready("dom-extend",a)},o=function(g){var n=["form-extend","form-message","form-native-fix"];g&&(g.preventDefault(),g.stopImmediatePropagation());clearTimeout(p);setTimeout(function(){l&&(l.remove(),l=h=null)},9);if(!b.bugfreeformvalidation)f.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),f.modules["form-extend"].test=a.noop;f.isReady("form-number-date-api")&&
|
11
|
+
n.push("form-number-date-api");f.reTest(n);if(h)try{h.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&d(function(){f.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});f.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(i){}(a.browser.opera||window.testGoodWithFix)&&
|
12
|
+
d(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(g){var d=f.defineNodeNameProperty(g,"checkValidity",{prop:{value:function(){f.fromSubmit||a(this).bind("invalid.checkvalidity",b);f.fromCheckValidity=!0;var c=d.prop._supvalue.apply(this,arguments);f.fromSubmit||a(this).unbind("invalid.checkvalidity",b);f.fromCheckValidity=!1;return c}}})})})};l.appendTo("head");if(window.opera||window.testGoodWithFix){m();i.validationMessage=!h.prop("validationMessage");
|
13
|
+
if((b.inputtypes||{}).date){try{h.prop("valueAsNumber",0)}catch(r){}i.valueAsNumberSet="1970-01-01"!=h.prop("value")}h.prop("value","")}l.bind("submit",function(a){b.bugfreeformvalidation=!1;o(a)});p=setTimeout(function(){l&&l.triggerHandler("submit")},9);a("input, select",l).bind("invalid",o).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&b.bugfreeformvalidation&&!f.bugs.bustedValidity&&function(){var b=/^(?:textarea|input)$/i,
|
14
|
+
d=!1;document.addEventListener("contextmenu",function(a){b.test(a.target.nodeName||"")&&(d=a.target.form)&&setTimeout(function(){d=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&d&&d==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
|
15
|
+
jQuery.webshims.register("form-core",function(a,b,f,i,l,m){var h={radio:1},p={checkbox:1,radio:1},d=a([]),o=b.bugs,r=function(c){var c=a(c),b,g;b=d;if(h[c[0].type])g=c.prop("form"),b=(b=c[0].name)?g?a(g[b]):a(i.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):c,b=b.filter('[type="radio"]');return b},g=b.getContentValidationMessage=function(c,b,d){var e=a(c).data("errormessage")||c.getAttribute("x-moz-errormessage")||"";d&&e[d]&&(e=e[d]);"object"==typeof e&&(b=b||a.prop(c,"validity")||
|
16
|
+
{valid:1},b.valid||a.each(b,function(a,c){if(c&&"valid"!=a&&e[a])return e=e[a],!1}));if("object"==typeof e)e=e.defaultMessage;return e||""},n={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(c){return!(!a.prop(c,"willValidate")||!(a.prop(c,"validity")||{valid:1}).valid)},"invalid-element":function(c){return!(!a.prop(c,"willValidate")||(a.prop(c,"validity")||{valid:1}).valid)},"required-element":function(c){return!(!a.prop(c,"willValidate")||!a.prop(c,"required"))},"optional-element":function(c){return!!(a.prop(c,
|
17
|
+
"willValidate")&&!1===a.prop(c,"required"))},"in-range":function(c){if(!n[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||c.rangeOverflow||c.rangeUnderflow)},"out-of-range":function(c){if(!n[a.prop(c,"type")]||!a.prop(c,"willValidate"))return!1;c=a.prop(c,"validity");return!(!c||!c.rangeOverflow&&!c.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(c){a.expr[":"][c]=a.expr.filters[c+"-element"]});a.expr[":"].focus=function(a){try{var b=
|
18
|
+
a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(d){}return!1};var q=a.event.customEvent||{};(o.bustedValidity||o.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var c=a.find,b=a.find.matchesSelector,d=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,e=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var j=arguments,j=a.call(j,1,j.length);j.unshift(b.replace(d,e));return c.apply(this,
|
19
|
+
j)},j;for(j in c)c.hasOwnProperty(j)&&(b[j]=c[j]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",i.documentElement))a.find.matchesSelector=function(a,c){c=c.replace(d,e);return b.call(this,a,c)}}();var s=a.prop,t={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(c,b,d){var e=s.apply(this,arguments);if(c&&"form"in c&&t[b]&&d!==l&&a(c).hasClass("form-ui-invalid")&&(a.prop(c,"validity")||{valid:1}).valid)a(c).getShadowElement().removeClass("form-ui-invalid"),
|
20
|
+
"checked"==b&&d&&r(c).not(c).removeClass("form-ui-invalid").removeAttr("aria-invalid");return e};var u=function(c,b){var d;a.each(c,function(c,g){if(g)return d="customError"==c?a.prop(b,"validationMessage"):c,!1});return d};a(i).bind(m.validityUIEvents||"focusout change refreshvalidityui",function(c){var b,d;if(c.target&&(b=a(c.target).getNativeElement()[0],!("submit"==b.type||!a.prop(b,"willValidate")||"focusout"==c.type&&"radio"==c.type))){d=a.data(b,"webshimsswitchvalidityclass");var e=function(){var e=
|
21
|
+
a.prop(b,"validity"),d=a(b).getShadowElement(),g,h,f,i;a(b).trigger("refreshCustomValidityRules");e.valid?d.hasClass("form-ui-valid")||(g="form-ui-valid",h="form-ui-invalid",i="changedvaliditystate",f="changedvalid",p[b.type]&&b.checked&&r(b).not(b).removeClass(h).addClass(g).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(e=u(e,b),a.data(b,"webshimsinvalidcause")!=e&&(a.data(b,"webshimsinvalidcause",e),i="changedvaliditystate"),d.hasClass("form-ui-invalid")||(g="form-ui-invalid",
|
22
|
+
h="form-ui-valid",p[b.type]&&!b.checked&&r(b).not(b).removeClass(h).addClass(g),f="changedinvalid"));g&&(d.addClass(g).removeClass(h),setTimeout(function(){a(b).trigger(f)},0));i&&setTimeout(function(){a(b).trigger(i)},0);a.removeData(c.target,"webshimsswitchvalidityclass")};d&&clearTimeout(d);"refreshvalidityui"==c.type?e():a.data(c.target,"webshimsswitchvalidityclass",setTimeout(e,9))}});q.changedvaliditystate=!0;q.refreshCustomValidityRules=!0;q.changedvalid=!0;q.changedinvalid=!0;q.refreshvalidityui=
|
23
|
+
!0;b.triggerInlineForm=function(b,d){a(b).trigger(d)};b.modules["form-core"].getGroupElements=r;o=function(){b.scrollRoot=a.browser.webkit||"BackCompat"==i.compatMode?a(i.body):a(i.documentElement)};o();b.ready("DOM",o);b.getRelOffset=function(b,d){var b=a(b),g=a(d).offset(),e;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){e=b.offset()});g.top-=e.top;g.left-=e.left;return g};b.validityAlert=function(){var c=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
|
24
|
+
"label",d,h=!1,e=!1,n,k={hideDelay:5E3,showFor:function(b,c,d,g){k._create();var b=a(b),j=a(b).getShadowElement(),i=k.getOffsetFromBody(j);k.clear();g?this.hide():(this.getMessage(b,c),this.position(j,i),this.show(),this.hideDelay&&(h=setTimeout(n,this.hideDelay)),a(f).bind("resize.validityalert",function(){clearTimeout(e);e=setTimeout(function(){k.position(j)},9)}));d||this.setFocus(j,i)},getOffsetFromBody:function(a){return b.getRelOffset(d,a)},setFocus:function(e,g){var h=a(e).getShadowFocusElement(),
|
25
|
+
f=b.scrollRoot.scrollTop(),k=(g||h.offset()).top-30,r;b.getID&&"label"==c&&d.attr("for",b.getID(h));f>k&&(b.scrollRoot.animate({scrollTop:k-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(f-k)),80)}),r=!0);try{h[0].focus()}catch(l){}r&&(b.scrollRoot.scrollTop(f),setTimeout(function(){b.scrollRoot.scrollTop(f)},0));setTimeout(function(){a(i).bind("focusout.validityalert",n)},10)},getMessage:function(b,c){c||(c=g(b[0])||b.prop("validationMessage"));c?a("span.va-box",d).text(c):this.hide()},position:function(b,
|
26
|
+
c){c=c?a.extend({},c):k.getOffsetFromBody(b);c.top+=b.outerHeight();d.css(c)},show:function(){"none"===d.css("display")&&d.css({opacity:0}).show();d.addClass("va-visible").fadeTo(400,1)},hide:function(){d.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(h);a(i).unbind(".validityalert");a(f).unbind(".validityalert");d.stop().removeAttr("for")},_create:function(){if(!d)d=k.errorBubble=a("<"+c+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
27
|
+
c+">").css({position:"absolute",display:"none"}),b.ready("DOM",function(){d.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&d.bgIframe()})}};n=a.proxy(k,"hide");return k}();(function(){var b,d=[],g;a(i).bind("invalid",function(e){if(!e.wrongWebkitInvalid){var h=a(e.target),f=h.getShadowElement();f.hasClass("form-ui-invalid")||(f.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(e.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
28
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=e.isDefaultPrevented,f=a.Event("firstinvalidsystem"),a(i).triggerHandler(f,{element:e.target,form:e.target.form,isInvalidUIPrevented:e.isDefaultPrevented}),h.trigger(b);b&&b.isDefaultPrevented()&&e.preventDefault();d.push(e.target);e.extraData="fix";clearTimeout(g);g=setTimeout(function(){var g={type:"lastinvalid",cancelable:!1,invalidlist:a(d)};b=!1;d=[];a(e.target).trigger(g,g)},9);f=h=null}})})();a.fn.getErrorMessage=function(){var b="",
|
29
|
+
d=this[0];d&&(b=g(d)||a.prop(d,"customValidationMessage")||a.prop(d,"validationMessage"));return b};m.replaceValidationUI&&b.ready("DOM forms",function(){a(i).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
30
|
+
jQuery.webshims.register("form-message",function(a,b,f,i,l,m){var h=b.validityMessages,f=m.overrideMessages||m.customMessages?["customValidationMessage"]:[];h.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
31
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},h.en||h["en-US"]||{});["select","radio"].forEach(function(a){h.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){h.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
|
32
|
+
"time","datetime-local"].forEach(function(a){h.en.rangeOverflow[a]="Value must be at or before {%max}."});h["en-US"]=h["en-US"]||h.en;h[""]=h[""]||h["en-US"];h.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
33
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
34
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},h.de||{});["select","radio"].forEach(function(a){h.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){h.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){h.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
|
35
|
+
var p=h[""];b.createValidationMessage=function(d,h){var f=p[h];f&&"string"!==typeof f&&(f=f[a.prop(d,"type")]||f[(d.nodeName||"").toLowerCase()]||f.defaultMessage);f&&"value,min,max,title,maxlength,label".split(",").forEach(function(g){if(-1!==f.indexOf("{%"+g)){var i=("label"==g?a.trim(a('label[for="'+d.id+'"]',d.form).text()).replace(/\*$|:$/,""):a.attr(d,g))||"";"patternMismatch"==h&&"title"==g&&!i&&b.error("no title for patternMismatch provided. Always add a title attribute.");f=f.replace("{%"+
|
36
|
+
g+"}",i);"value"==g&&(f=f.replace("{%valueLen}",i.length))}});return f||""};(b.bugs.validationMessage||!Modernizr.formvalidation||b.bugs.bustedValidity)&&f.push("validationMessage");b.activeLang({langObj:h,module:"form-core",callback:function(a){p=a}});f.forEach(function(d){b.defineNodeNamesProperty(["fieldset","output","button"],d,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(f){var h=b.defineNodeNameProperty(f,d,{prop:{get:function(){var d=this,f="";if(!a.prop(d,
|
37
|
+
"willValidate"))return f;var i=a.prop(d,"validity")||{valid:1};if(i.valid||(f=b.getContentValidationMessage(d,i)))return f;if(i.customError&&d.nodeName&&(f=Modernizr.formvalidation&&!b.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(d):b.data(d,"customvalidationMessage")))return f;a.each(i,function(a,h){if("valid"!=a&&h&&(f=b.createValidationMessage(d,a)))return!1});return f||""},writeable:!1}})})})});
|
@@ -1,61 +1,59 @@
|
|
1
|
-
jQuery.webshims.register("form-extend",function(a,c,g,
|
2
|
-
!
|
3
|
-
"setCustomValidity",{prop:{value:function(b){var b=b+"",
|
4
|
-
"input"==d?a(this).getNativeElement()[0]:this,
|
5
|
-
f(
|
6
|
-
|
7
|
-
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!c.data(this,"hasCustomError")){var d=this,f=a.prop(d,"validity")||{valid:!0},
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
"
|
22
|
-
|
23
|
-
|
24
|
-
f
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
b
|
29
|
-
0
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
"
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
"
|
39
|
-
a
|
40
|
-
|
41
|
-
|
42
|
-
a.
|
43
|
-
|
44
|
-
|
45
|
-
!
|
46
|
-
a.
|
47
|
-
|
48
|
-
a(
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
b.
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
b
|
58
|
-
|
59
|
-
"
|
60
|
-
return null==b?l:b},set:function(b){a.data(this,"datalistListAttr",b);c.objectCreate(r,l,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}:{attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?l:a},set:function(b){c.contentAttr(this,"list",b);c.objectCreate(r,l,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=
|
61
|
-
!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
1
|
+
jQuery.webshims.register("form-extend",function(a,c,h,g,m,l){h=h.Modernizr;m=h.inputtypes;if(h.formvalidation&&!c.bugs.bustedValidity){var e=c.inputTypes,q={};c.addInputType=function(a,d){e[a]=d};c.addValidityRule=function(a,d){q[a]=d};c.addValidityRule("typeMismatch",function(a,d,b,f){if(""===d)return!1;f=f.typeMismatch;if(!("type"in b))b.type=(a[0].getAttribute("type")||"").toLowerCase();e[b.type]&&e[b.type].mismatch&&(f=e[b.type].mismatch(d,a));return f});var j=l.overrideMessages,p=!m.number||
|
2
|
+
!m.time||!m.range||j,t="customError,typeMismatch,rangeUnderflow,rangeOverflow,stepMismatch,tooLong,patternMismatch,valueMissing,valid".split(","),l=j?["value","checked"]:["value"],i=[],s=function(d,b){if(d){var f=(d.getAttribute&&d.getAttribute("type")||d.type||"").toLowerCase();if(j||e[f])j&&!b&&"radio"==f&&d.name?a(g.getElementsByName(d.name)).each(function(){a.prop(this,"validity")}):a.prop(d,"validity")}},b={};["input","textarea","select"].forEach(function(d){var f=c.defineNodeNameProperty(d,
|
3
|
+
"setCustomValidity",{prop:{value:function(b){var b=b+"",k="input"==d?a(this).getNativeElement()[0]:this;f.prop._supvalue.call(k,b);c.bugs.validationMessage&&c.data(k,"customvalidationMessage",b);p&&(c.data(k,"hasCustomError",!!b),s(k))}}});b[d]=f.prop._supvalue});if(p||j)l.push("min"),l.push("max"),l.push("step"),i.push("input");j&&(l.push("required"),l.push("pattern"),i.push("select"),i.push("textarea"));if(p){var f;i.forEach(function(d){var k=c.defineNodeNameProperty(d,"validity",{prop:{get:function(){if(!f){var n=
|
4
|
+
"input"==d?a(this).getNativeElement()[0]:this,o=k.prop._supget.call(n);if(!o)return o;var i={};t.forEach(function(a){i[a]=o[a]});if(!a.prop(n,"willValidate"))return i;f=!0;var h=a(n),g={type:(n.getAttribute&&n.getAttribute("type")||"").toLowerCase(),nodeName:(n.nodeName||"").toLowerCase()},s=h.val(),l=!!c.data(n,"hasCustomError"),m;f=!1;i.customError=l;if(i.valid&&i.customError)i.valid=!1;else if(!i.valid){var p=!0;a.each(i,function(a,d){if(d)return p=!1});if(p)i.valid=!0}a.each(q,function(a,f){i[a]=
|
5
|
+
f(h,s,g,i);if(i[a]&&(i.valid||!m)&&(j||e[g.type]&&e[g.type].mismatch))b[d].call(n,c.createValidationMessage(n,a)),i.valid=!1,m=!0});i.valid?(b[d].call(n,""),c.data(n,"hasCustomError",!1)):j&&!m&&!l&&a.each(i,function(a,f){if("valid"!==a&&f)return b[d].call(n,c.createValidationMessage(n,a)),!1});return i}},writeable:!1}})});l.forEach(function(a){c.onNodeNamesPropertyModify(i,a,function(){s(this)})});if(g.addEventListener){var k,o=function(d){if("form"in d.target){var b=d.target.form;clearTimeout(k);
|
6
|
+
s(d.target);b&&j&&a("input",b).each(function(){"password"==this.type&&s(this)})}};g.addEventListener("change",o,!0);j&&(g.addEventListener("blur",o,!0),g.addEventListener("keydown",function(a){13==a.keyCode&&o(a)},!0));g.addEventListener("input",function(a){clearTimeout(k);k=setTimeout(function(){s(a.target)},290)},!0)}var d=i.join(",");c.addReady(function(b,f){a(d,b).add(f.filter(d)).each(function(){a.prop(this,"validity")})});j&&c.ready("DOM form-message",function(){c.activeLang({register:"form-core",
|
7
|
+
callback:function(){a("input, select, textarea").getNativeElement().each(function(){if(!c.data(this,"hasCustomError")){var d=this,f=a.prop(d,"validity")||{valid:!0},k;f.valid||(k=(d.nodeName||"").toLowerCase(),a.each(f,function(a,f){if("valid"!==a&&f)return b[k].call(d,c.createValidationMessage(d,a)),!1}))}})}})})}c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}})}});
|
8
|
+
(function(a){var c=window.Modernizr,h=a.webshims,g=h.bugs,m=a('<form action="#" style="width: 1px; height: 1px; overflow: hidden;"><select name="b" required="" /><input type="date" required="" name="a" /><input type="submit" /></form>'),l=function(){if(m[0].querySelector)try{g.findRequired=!m[0].querySelector("select:required")}catch(a){g.findRequired=!1}};g.findRequired=!1;g.validationMessage=!1;g.valueAsNumberSet=!1;h.capturingEventPrevented=function(c){if(!c._isPolyfilled){var e=c.isDefaultPrevented,
|
9
|
+
b=c.preventDefault;c.preventDefault=function(){clearTimeout(a.data(c.target,c.type+"DefaultPrevented"));a.data(c.target,c.type+"DefaultPrevented",setTimeout(function(){a.removeData(c.target,c.type+"DefaultPrevented")},30));return b.apply(this,arguments)};c.isDefaultPrevented=function(){return!(!e.apply(this,arguments)&&!a.data(c.target,c.type+"DefaultPrevented"))};c._isPolyfilled=!0}};if(!c.formvalidation||g.bustedValidity)l();else if(h.capturingEvents(["input"]),h.capturingEvents(["invalid"],!0),
|
10
|
+
c.bugfreeformvalidation=!0,window.opera||a.browser.webkit||window.testGoodWithFix){var e=a("input",m).eq(0),q,j=function(a){h.loader.loadList(["dom-extend"]);h.ready("dom-extend",a)},p=function(i){var g=["form-extend","form-message","form-native-fix"];i&&(i.preventDefault(),i.stopImmediatePropagation());clearTimeout(q);setTimeout(function(){m&&(m.remove(),m=e=null)},9);if(!c.bugfreeformvalidation)h.addPolyfill("form-native-fix",{f:"forms",d:["form-extend"]}),h.modules["form-extend"].test=a.noop;h.isReady("form-number-date-api")&&
|
11
|
+
g.push("form-number-date-api");h.reTest(g);if(e)try{e.prop({disabled:!0,value:""}).prop("disabled",!1).is(":valid")&&j(function(){h.onNodeNamesPropertyModify(["input","textarea"],["disabled","readonly"],{set:function(b){!b&&this&&a.prop(this,"value",a.prop(this,"value"))}});h.onNodeNamesPropertyModify(["select"],["disabled","readonly"],{set:function(b){if(!b&&this)b=a(this).val(),(a("option:last-child",this)[0]||{}).selected=!0,a(this).val(b)}})})}catch(b){}(a.browser.opera||window.testGoodWithFix)&&
|
12
|
+
j(function(){var b=function(a){a.preventDefault()};["form","input","textarea","select"].forEach(function(c){var o=h.defineNodeNameProperty(c,"checkValidity",{prop:{value:function(){h.fromSubmit||a(this).bind("invalid.checkvalidity",b);h.fromCheckValidity=!0;var d=o.prop._supvalue.apply(this,arguments);h.fromSubmit||a(this).unbind("invalid.checkvalidity",b);h.fromCheckValidity=!1;return d}}})})})};m.appendTo("head");if(window.opera||window.testGoodWithFix){l();g.validationMessage=!e.prop("validationMessage");
|
13
|
+
if((c.inputtypes||{}).date){try{e.prop("valueAsNumber",0)}catch(t){}g.valueAsNumberSet="1970-01-01"!=e.prop("value")}e.prop("value","")}m.bind("submit",function(a){c.bugfreeformvalidation=!1;p(a)});q=setTimeout(function(){m&&m.triggerHandler("submit")},9);a("input, select",m).bind("invalid",p).filter('[type="submit"]').bind("click",function(a){a.stopImmediatePropagation()}).trigger("click");a.browser.webkit&&c.bugfreeformvalidation&&!h.bugs.bustedValidity&&function(){var c=/^(?:textarea|input)$/i,
|
14
|
+
e=!1;document.addEventListener("contextmenu",function(a){c.test(a.target.nodeName||"")&&(e=a.target.form)&&setTimeout(function(){e=!1},1)},!1);a(window).bind("invalid",function(a){if(a.originalEvent&&e&&e==a.target.form)a.wrongWebkitInvalid=!0,a.stopImmediatePropagation()})}()}})(jQuery);
|
15
|
+
jQuery.webshims.register("form-core",function(a,c,h,g,m,l){var e={radio:1},q={checkbox:1,radio:1},j=a([]),p=c.bugs,t=function(d){var d=a(d),b,f;b=j;if(e[d[0].type])f=d.prop("form"),b=(b=d[0].name)?f?a(f[b]):a(g.getElementsByName(b)).filter(function(){return!a.prop(this,"form")}):d,b=b.filter('[type="radio"]');return b},i=c.getContentValidationMessage=function(d,b,f){var c=a(d).data("errormessage")||d.getAttribute("x-moz-errormessage")||"";f&&c[f]&&(c=c[f]);"object"==typeof c&&(b=b||a.prop(d,"validity")||
|
16
|
+
{valid:1},b.valid||a.each(b,function(a,d){if(d&&"valid"!=a&&c[a])return c=c[a],!1}));if("object"==typeof c)c=c.defaultMessage;return c||""},s={number:1,range:1,date:1};a.extend(a.expr[":"],{"valid-element":function(d){return!(!a.prop(d,"willValidate")||!(a.prop(d,"validity")||{valid:1}).valid)},"invalid-element":function(d){return!(!a.prop(d,"willValidate")||(a.prop(d,"validity")||{valid:1}).valid)},"required-element":function(d){return!(!a.prop(d,"willValidate")||!a.prop(d,"required"))},"optional-element":function(d){return!!(a.prop(d,
|
17
|
+
"willValidate")&&!1===a.prop(d,"required"))},"in-range":function(d){if(!s[a.prop(d,"type")]||!a.prop(d,"willValidate"))return!1;d=a.prop(d,"validity");return!(!d||d.rangeOverflow||d.rangeUnderflow)},"out-of-range":function(d){if(!s[a.prop(d,"type")]||!a.prop(d,"willValidate"))return!1;d=a.prop(d,"validity");return!(!d||!d.rangeOverflow&&!d.rangeUnderflow)}});["valid","invalid","required","optional"].forEach(function(d){a.expr[":"][d]=a.expr.filters[d+"-element"]});a.expr[":"].focus=function(a){try{var b=
|
18
|
+
a.ownerDocument;return a===b.activeElement&&(!b.hasFocus||b.hasFocus())}catch(f){}return!1};var b=a.event.customEvent||{};(p.bustedValidity||p.findRequired||!Modernizr.bugfreeformvalidation)&&function(){var d=a.find,b=a.find.matchesSelector,f=/(\:valid|\:invalid|\:optional|\:required|\:in-range|\:out-of-range)(?=[\s\[\~\.\+\>\:\#*]|$)/ig,c=function(a){return a+"-element"};a.find=function(){var a=Array.prototype.slice,b=function(b){var r=arguments,r=a.call(r,1,r.length);r.unshift(b.replace(f,c));return d.apply(this,
|
19
|
+
r)},r;for(r in d)d.hasOwnProperty(r)&&(b[r]=d[r]);return b}();if(!Modernizr.prefixed||Modernizr.prefixed("matchesSelector",g.documentElement))a.find.matchesSelector=function(a,d){d=d.replace(f,c);return b.call(this,a,d)}}();var f=a.prop,k={selectedIndex:1,value:1,checked:1,disabled:1,readonly:1};a.prop=function(d,b,c){var o=f.apply(this,arguments);if(d&&"form"in d&&k[b]&&c!==m&&a(d).hasClass("form-ui-invalid")&&(a.prop(d,"validity")||{valid:1}).valid)a(d).getShadowElement().removeClass("form-ui-invalid"),
|
20
|
+
"checked"==b&&c&&t(d).not(d).removeClass("form-ui-invalid").removeAttr("aria-invalid");return o};var o=function(d,b){var f;a.each(d,function(d,c){if(c)return f="customError"==d?a.prop(b,"validationMessage"):d,!1});return f};a(g).bind(l.validityUIEvents||"focusout change refreshvalidityui",function(d){var b,f;if(d.target&&(b=a(d.target).getNativeElement()[0],!("submit"==b.type||!a.prop(b,"willValidate")||"focusout"==d.type&&"radio"==d.type))){f=a.data(b,"webshimsswitchvalidityclass");var c=function(){var f=
|
21
|
+
a.prop(b,"validity"),c=a(b).getShadowElement(),k,e,i,n;a(b).trigger("refreshCustomValidityRules");f.valid?c.hasClass("form-ui-valid")||(k="form-ui-valid",e="form-ui-invalid",n="changedvaliditystate",i="changedvalid",q[b.type]&&b.checked&&t(b).not(b).removeClass(e).addClass(k).removeAttr("aria-invalid"),a.removeData(b,"webshimsinvalidcause")):(f=o(f,b),a.data(b,"webshimsinvalidcause")!=f&&(a.data(b,"webshimsinvalidcause",f),n="changedvaliditystate"),c.hasClass("form-ui-invalid")||(k="form-ui-invalid",
|
22
|
+
e="form-ui-valid",q[b.type]&&!b.checked&&t(b).not(b).removeClass(e).addClass(k),i="changedinvalid"));k&&(c.addClass(k).removeClass(e),setTimeout(function(){a(b).trigger(i)},0));n&&setTimeout(function(){a(b).trigger(n)},0);a.removeData(d.target,"webshimsswitchvalidityclass")};f&&clearTimeout(f);"refreshvalidityui"==d.type?c():a.data(d.target,"webshimsswitchvalidityclass",setTimeout(c,9))}});b.changedvaliditystate=!0;b.refreshCustomValidityRules=!0;b.changedvalid=!0;b.changedinvalid=!0;b.refreshvalidityui=
|
23
|
+
!0;c.triggerInlineForm=function(b,f){a(b).trigger(f)};c.modules["form-core"].getGroupElements=t;p=function(){c.scrollRoot=a.browser.webkit||"BackCompat"==g.compatMode?a(g.body):a(g.documentElement)};p();c.ready("DOM",p);c.getRelOffset=function(b,f){var b=a(b),c=a(f).offset(),k;a.swap(a(b)[0],{visibility:"hidden",display:"inline-block",left:0,top:0},function(){k=b.offset()});c.top-=k.top;c.left-=k.left;return c};c.validityAlert=function(){var b=!a.browser.msie||7<parseInt(a.browser.version,10)?"span":
|
24
|
+
"label",f,k=!1,o=!1,e,j={hideDelay:5E3,showFor:function(b,d,f,c){j._create();var b=a(b),r=a(b).getShadowElement(),i=j.getOffsetFromBody(r);j.clear();c?this.hide():(this.getMessage(b,d),this.position(r,i),this.show(),this.hideDelay&&(k=setTimeout(e,this.hideDelay)),a(h).bind("resize.validityalert",function(){clearTimeout(o);o=setTimeout(function(){j.position(r)},9)}));f||this.setFocus(r,i)},getOffsetFromBody:function(a){return c.getRelOffset(f,a)},setFocus:function(k,o){var i=a(k).getShadowFocusElement(),
|
25
|
+
j=c.scrollRoot.scrollTop(),n=(o||i.offset()).top-30,h;c.getID&&"label"==b&&f.attr("for",c.getID(i));j>n&&(c.scrollRoot.animate({scrollTop:n-5},{queue:!1,duration:Math.max(Math.min(600,1.5*(j-n)),80)}),h=!0);try{i[0].focus()}catch(l){}h&&(c.scrollRoot.scrollTop(j),setTimeout(function(){c.scrollRoot.scrollTop(j)},0));setTimeout(function(){a(g).bind("focusout.validityalert",e)},10)},getMessage:function(b,d){d||(d=i(b[0])||b.prop("validationMessage"));d?a("span.va-box",f).text(d):this.hide()},position:function(b,
|
26
|
+
d){d=d?a.extend({},d):j.getOffsetFromBody(b);d.top+=b.outerHeight();f.css(d)},show:function(){"none"===f.css("display")&&f.css({opacity:0}).show();f.addClass("va-visible").fadeTo(400,1)},hide:function(){f.removeClass("va-visible").fadeOut()},clear:function(){clearTimeout(!1);clearTimeout(k);a(g).unbind(".validityalert");a(h).unbind(".validityalert");f.stop().removeAttr("for")},_create:function(){if(!f)f=j.errorBubble=a("<"+b+' class="validity-alert-wrapper" role="alert"><span class="validity-alert"><span class="va-arrow"><span class="va-arrow-box"></span></span><span class="va-box"></span></span></'+
|
27
|
+
b+">").css({position:"absolute",display:"none"}),c.ready("DOM",function(){f.appendTo("body");a.fn.bgIframe&&a.browser.msie&&7>parseInt(a.browser.version,10)&&f.bgIframe()})}};e=a.proxy(j,"hide");return j}();(function(){var b,f=[],c;a(g).bind("invalid",function(k){if(!k.wrongWebkitInvalid){var o=a(k.target),e=o.getShadowElement();e.hasClass("form-ui-invalid")||(e.addClass("form-ui-invalid").removeClass("form-ui-valid"),setTimeout(function(){a(k.target).trigger("changedinvalid").trigger("changedvaliditystate")},
|
28
|
+
0));if(!b)b=a.Event("firstinvalid"),b.isInvalidUIPrevented=k.isDefaultPrevented,e=a.Event("firstinvalidsystem"),a(g).triggerHandler(e,{element:k.target,form:k.target.form,isInvalidUIPrevented:k.isDefaultPrevented}),o.trigger(b);b&&b.isDefaultPrevented()&&k.preventDefault();f.push(k.target);k.extraData="fix";clearTimeout(c);c=setTimeout(function(){var c={type:"lastinvalid",cancelable:!1,invalidlist:a(f)};b=!1;f=[];a(k.target).trigger(c,c)},9);e=o=null}})})();a.fn.getErrorMessage=function(){var b="",
|
29
|
+
f=this[0];f&&(b=i(f)||a.prop(f,"customValidationMessage")||a.prop(f,"validationMessage"));return b};l.replaceValidationUI&&c.ready("DOM forms",function(){a(g).bind("firstinvalid",function(b){b.isInvalidUIPrevented()||(b.preventDefault(),a.webshims.validityAlert.showFor(b.target,a(b.target).prop("customValidationMessage")))})})});
|
30
|
+
jQuery.webshims.register("form-message",function(a,c,h,g,m,l){var e=c.validityMessages,h=l.overrideMessages||l.customMessages?["customValidationMessage"]:[];e.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."},
|
31
|
+
stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},e.en||e["en-US"]||{});["select","radio"].forEach(function(a){e.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){e.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date",
|
32
|
+
"time","datetime-local"].forEach(function(a){e.en.rangeOverflow[a]="Value must be at or before {%max}."});e["en-US"]=e["en-US"]||e.en;e[""]=e[""]||e["en-US"];e.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."},
|
33
|
+
rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein",
|
34
|
+
checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},e.de||{});["select","radio"].forEach(function(a){e.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){e.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){e.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."});
|
35
|
+
var q=e[""];c.createValidationMessage=function(e,h){var g=q[h];g&&"string"!==typeof g&&(g=g[a.prop(e,"type")]||g[(e.nodeName||"").toLowerCase()]||g.defaultMessage);g&&"value,min,max,title,maxlength,label".split(",").forEach(function(i){if(-1!==g.indexOf("{%"+i)){var l=("label"==i?a.trim(a('label[for="'+e.id+'"]',e.form).text()).replace(/\*$|:$/,""):a.attr(e,i))||"";"patternMismatch"==h&&"title"==i&&!l&&c.error("no title for patternMismatch provided. Always add a title attribute.");g=g.replace("{%"+
|
36
|
+
i+"}",l);"value"==i&&(g=g.replace("{%valueLen}",l.length))}});return g||""};(c.bugs.validationMessage||!Modernizr.formvalidation||c.bugs.bustedValidity)&&h.push("validationMessage");c.activeLang({langObj:e,module:"form-core",callback:function(a){q=a}});h.forEach(function(e){c.defineNodeNamesProperty(["fieldset","output","button"],e,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(g){var h=c.defineNodeNameProperty(g,e,{prop:{get:function(){var e=this,g="";if(!a.prop(e,
|
37
|
+
"willValidate"))return g;var b=a.prop(e,"validity")||{valid:1};if(b.valid||(g=c.getContentValidationMessage(e,b)))return g;if(b.customError&&e.nodeName&&(g=Modernizr.formvalidation&&!c.bugs.bustedValidity&&h.prop._supget?h.prop._supget.call(e):c.data(e,"customvalidationMessage")))return g;a.each(b,function(a,b){if("valid"!=a&&b&&(g=c.createValidationMessage(e,a)))return!1});return g||""},writeable:!1}})})})});
|
38
|
+
jQuery.webshims.register("form-datalist",function(a,c,h,g,m){c.propTypes.element=function(h){c.createPropDefault(h,"attr");if(!h.prop)h.prop={get:function(){var c=h.attr.get.call(this);c&&(c=g.getElementById(c))&&h.propNodeName&&!a.nodeName(c,h.propNodeName)&&(c=null);return c||null},writeable:!1}};(function(){var l=a.webshims.cfg.forms,e=Modernizr.input.list;if(!e||l.customDatalist){var q=0,j={submit:1,button:1,reset:1,hidden:1,range:1,date:1},p=a.browser.msie&&7>parseInt(a.browser.version,10),t=
|
39
|
+
{},i=function(a){if(!a)return[];if(t[a])return t[a];var f;try{f=JSON.parse(localStorage.getItem("storedDatalistOptions"+a))}catch(c){}t[a]=f||[];return f||[]},s={_create:function(b){if(!j[a.prop(b.input,"type")]){var f=b.datalist,c=a.data(b.input,"datalistWidget");if(f&&c&&c.datalist!==f)c.datalist=f,c.id=b.id,c.shadowList.prop("className","datalist-polyfill "+(c.datalist.className||"")+" "+c.datalist.id+"-shadowdom"),l.positionDatalist?c.shadowList.insertAfter(b.input):c.shadowList.appendTo("body"),
|
40
|
+
a(c.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(c,"_resetListCached")),c._resetListCached();else if(f){if(!(c&&c.datalist===f)){q++;var e=this;this.hideList=a.proxy(e,"hideList");this.timedHide=function(){clearTimeout(e.hideTimer);e.hideTimer=setTimeout(e.hideList,9)};this.datalist=f;this.id=b.id;this.hasViewableData=!0;this._autocomplete=a.attr(b.input,"autocomplete");a.data(b.input,"datalistWidget",this);this.shadowList=a('<div class="datalist-polyfill '+
|
41
|
+
(this.datalist.className||"")+" "+this.datalist.id+'-shadowdom" />');l.positionDatalist||a(b.input).hasClass("position-datalist")?this.shadowList.insertAfter(b.input):this.shadowList.appendTo("body");this.index=-1;this.input=b.input;this.arrayOptions=[];this.shadowList.delegate("li","mouseenter.datalistWidget mousedown.datalistWidget click.datalistWidget",function(d){var c=a("li:not(.hidden-item)",e.shadowList),f="mousedown"==d.type||"click"==d.type;e.markItem(c.index(d.currentTarget),f,c);"click"==
|
42
|
+
d.type&&(e.hideList(),l.customDatalist&&a(b.input).trigger("datalistselect"));return"mousedown"!=d.type}).bind("focusout",this.timedHide);b.input.setAttribute("autocomplete","off");a(b.input).attr({"aria-haspopup":"true"}).bind("input.datalistWidget",function(){if(!e.triggeredByDatalist)e.changedValue=!1,e.showHideOptions()}).bind("keydown.datalistWidget",function(d){var c=d.keyCode,f;if(40==c&&!e.showList())return e.markItem(e.index+1,!0),!1;if(e.isListVisible){if(38==c)return e.markItem(e.index-
|
43
|
+
1,!0),!1;if(!d.shiftKey&&(33==c||36==c))return e.markItem(0,!0),!1;if(!d.shiftKey&&(34==c||35==c))return d=a("li:not(.hidden-item)",e.shadowList),e.markItem(d.length-1,!0,d),!1;if(13==c||27==c)return 13==c&&(f=a("li.active-item:not(.hidden-item)",e.shadowList),e.changeValue(a("li.active-item:not(.hidden-item)",e.shadowList))),e.hideList(),l.customDatalist&&f&&f[0]&&a(b.input).trigger("datalistselect"),!1}}).bind("focus.datalistWidget",function(){a(this).hasClass("list-focus")&&e.showList()}).bind("mousedown.datalistWidget",
|
44
|
+
function(){a(this).is(":focus")&&e.showList()}).bind("blur.datalistWidget",this.timedHide);a(this.datalist).unbind("updateDatalist.datalistWidget").bind("updateDatalist.datalistWidget",a.proxy(this,"_resetListCached"));this._resetListCached();b.input.form&&(b.input.name||b.input.id)&&a(b.input.form).bind("submit.datalistWidget"+b.input.id,function(){if(!a(b.input).hasClass("no-datalist-cache")&&"off"!=e._autocomplete){var c=a.prop(b.input,"value"),f=(b.input.name||b.input.id)+a.prop(b.input,"type");
|
45
|
+
if(!e.storedOptions)e.storedOptions=i(f);if(c&&-1==e.storedOptions.indexOf(c)&&(e.storedOptions.push(c),c=e.storedOptions,f)){c=c||[];try{localStorage.setItem("storedDatalistOptions"+f,JSON.stringify(c))}catch(k){}}}});a(h).bind("unload.datalist"+this.id+" beforeunload.datalist"+this.id,function(){e.destroy()})}}else c&&c.destroy()}},destroy:function(){var b=a.attr(this.input,"autocomplete");a(this.input).unbind(".datalistWidget").removeData("datalistWidget");this.shadowList.remove();a(g).unbind(".datalist"+
|
46
|
+
this.id);a(h).unbind(".datalist"+this.id);this.input.form&&this.input.id&&a(this.input.form).unbind("submit.datalistWidget"+this.input.id);this.input.removeAttribute("aria-haspopup");b===m?this.input.removeAttribute("autocomplete"):a(this.input).attr("autocomplete",b)},_resetListCached:function(a){var f=this,e;this.needsUpdate=!0;this.lastUpdatedValue=!1;this.lastUnfoundValue="";this.updateTimer||(h.QUnit||(e=a&&g.activeElement==f.input)?f.updateListOptions(e):c.ready("WINDOWLOAD",function(){f.updateTimer=
|
47
|
+
setTimeout(function(){f.updateListOptions();f=null;q=1},200+100*q)}))},updateListOptions:function(b){this.needsUpdate=!1;clearTimeout(this.updateTimer);this.updateTimer=!1;this.shadowList.css({fontSize:a.css(this.input,"fontSize"),fontFamily:a.css(this.input,"fontFamily")});this.searchStart=l.customDatalist&&a(this.input).hasClass("search-start");var c=[],e=[],g=[],d,h,j,n;for(h=a.prop(this.datalist,"options"),j=0,n=h.length;j<n;j++){d=h[j];if(d.disabled)return;d={value:a(d).val()||"",text:a.trim(a.attr(d,
|
48
|
+
"label")||d.textContent||d.innerText||a.text([d])||""),className:d.className||"",style:a.attr(d,"style")||""};d.text?d.text!=d.value&&(d.className+=" different-label-value"):d.text=d.value;e[j]=d.value;g[j]=d}if(!this.storedOptions)this.storedOptions=a(this.input).hasClass("no-datalist-cache")||"off"==this._autocomplete?[]:i((this.input.name||this.input.id)+a.prop(this.input,"type"));this.storedOptions.forEach(function(a){-1==e.indexOf(a)&&g.push({value:a,text:a,className:"stored-suggest",style:""})});
|
49
|
+
for(j=0,n=g.length;j<n;j++)h=g[j],c[j]='<li class="'+h.className+'" style="'+h.style+'" tabindex="-1" role="listitem"><span class="option-label">'+h.text+'</span> <span class="option-value">'+h.value+"</span></li>";this.arrayOptions=g;this.shadowList.html('<div class="datalist-outer-box"><div class="datalist-box"><ul role="list">'+c.join("\n")+"</ul></div></div>");a.fn.bgIframe&&p&&this.shadowList.bgIframe();(b||this.isListVisible)&&this.showHideOptions()},showHideOptions:function(b){var c=a.prop(this.input,
|
50
|
+
"value").toLowerCase();if(!(c===this.lastUpdatedValue||this.lastUnfoundValue&&0===c.indexOf(this.lastUnfoundValue))){this.lastUpdatedValue=c;var e=!1,g=this.searchStart,d=a("li",this.shadowList);c?this.arrayOptions.forEach(function(b,h){var i;if(!("lowerText"in b))b.lowerText=b.text!=b.value?b.value.toLowerCase()+b.text.toLowerCase():b.text.toLowerCase();i=b.lowerText.indexOf(c);(i=g?!i:-1!==i)?(a(d[h]).removeClass("hidden-item"),e=!0):a(d[h]).addClass("hidden-item")}):d.length&&(d.removeClass("hidden-item"),
|
51
|
+
e=!0);this.hasViewableData=e;!b&&e&&this.showList();if(!e)this.lastUnfoundValue=c,this.hideList()}},setPos:function(){this.shadowList.css({marginTop:0,marginLeft:0,marginRight:0,marginBottom:0});var b=l.positionDatalist?a(this.input).position():c.getRelOffset(this.shadowList,this.input);b.top+=a(this.input).outerHeight();b.width=a(this.input).outerWidth()-(parseInt(this.shadowList.css("borderLeftWidth"),10)||0)-(parseInt(this.shadowList.css("borderRightWidth"),10)||0);this.shadowList.css({marginTop:"",
|
52
|
+
marginLeft:"",marginRight:"",marginBottom:""}).css(b);return b},showList:function(){if(this.isListVisible)return!1;this.needsUpdate&&this.updateListOptions();this.showHideOptions(!0);if(!this.hasViewableData)return!1;this.isListVisible=!0;var b=this;b.setPos();b.shadowList.addClass("datalist-visible").find("li.active-item").removeClass("active-item");a(h).unbind(".datalist"+b.id);a(g).unbind(".datalist"+b.id).bind("mousedown.datalist"+b.id+" focusin.datalist"+b.id,function(c){c.target===b.input||
|
53
|
+
b.shadowList[0]===c.target||a.contains(b.shadowList[0],c.target)?(clearTimeout(b.hideTimer),setTimeout(function(){clearTimeout(b.hideTimer)},9)):b.timedHide()}).bind("updateshadowdom.datalist"+b.id,function(){b.setPos()});return!0},hideList:function(){if(!this.isListVisible)return!1;var b=this,f=function(){b.changedValue&&a(b.input).trigger("change");b.changedValue=!1};b.shadowList.removeClass("datalist-visible list-item-active");b.index=-1;b.isListVisible=!1;if(b.changedValue){b.triggeredByDatalist=
|
54
|
+
!0;c.triggerInlineForm&&c.triggerInlineForm(b.input,"input");if(a(b.input).is(":focus"))a(b.input).one("blur",f);else f();b.triggeredByDatalist=!1}a(g).unbind(".datalist"+b.id);a(h).unbind(".datalist"+b.id).one("resize.datalist"+b.id,function(){b.shadowList.css({top:0,left:0})});return!0},scrollIntoView:function(b){var c=a("ul",this.shadowList),e=a("div.datalist-box",this.shadowList),g=b.position();g.top-=(parseInt(c.css("paddingTop"),10)||0)+(parseInt(c.css("marginTop"),10)||0)+(parseInt(c.css("borderTopWidth"),
|
55
|
+
10)||0);0>g.top?e.scrollTop(e.scrollTop()+g.top-2):(g.top+=b.outerHeight(),b=e.height(),g.top>b&&e.scrollTop(e.scrollTop()+(g.top-b)+2))},changeValue:function(b){if(b[0]){var b=a("span.option-value",b).text(),c=a.prop(this.input,"value");if(b!=c)a(this.input).prop("value",b).triggerHandler("updateInput"),this.changedValue=!0}},markItem:function(b,c,e){e=e||a("li:not(.hidden-item)",this.shadowList);if(e.length)0>b?b=e.length-1:b>=e.length&&(b=0),e.removeClass("active-item"),this.shadowList.addClass("list-item-active"),
|
56
|
+
e=e.filter(":eq("+b+")").addClass("active-item"),c&&(this.changeValue(e),this.scrollIntoView(e)),this.index=b}};(function(){e||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=a("select",this);b[0]?b=b[0].options:(b=a("option",this).get(),b.length&&c.warn("you should wrap your option-elements for a datalist in a select element to support IE and other old browsers."));return b}}});var b={autocomplete:{attr:{get:function(){var b=a.data(this,"datalistWidget");return b?
|
57
|
+
b._autocomplete:"autocomplete"in this?this.autocomplete:this.getAttribute("autocomplete")},set:function(b){var c=a.data(this,"datalistWidget");c?(c._autocomplete=b,"off"==b&&c.hideList()):"autocomplete"in this?this.autocomplete=b:this.setAttribute("autocomplete",b)}}}};e?((a("<datalist><select><option></option></select></datalist>").prop("options")||[]).length||c.defineNodeNameProperty("datalist","options",{prop:{writeable:!1,get:function(){var b=this.options||[];if(!b.length){var c=a("select",this);
|
58
|
+
if(c[0]&&c[0].options&&c[0].options.length)b=c[0].options}return b}}}),b.list={attr:{get:function(){var b=c.contentAttr(this,"list");null!=b?this.removeAttribute("list"):b=a.data(this,"datalistListAttr");return null==b?m:b},set:function(b){a.data(this,"datalistListAttr",b);c.objectCreate(s,m,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"}):b.list={attr:{get:function(){var a=c.contentAttr(this,"list");return null==a?m:a},set:function(b){c.contentAttr(this,
|
59
|
+
"list",b);c.objectCreate(s,m,{input:this,id:b,datalist:a.prop(this,"list")})}},initAttr:!0,reflect:!0,propType:"element",propNodeName:"datalist"};c.defineNodeNameProperties("input",b);if(a.event.customEvent)a.event.customEvent.updateDatalist=!0,a.event.customEvent.updateInput=!0,a.event.customEvent.datalistselect=!0;c.addReady(function(a,b){b.filter("datalist > select, datalist, datalist > option, datalist > select > option").closest("datalist").triggerHandler("updateDatalist")})})()}})()});
|
@@ -1,29 +1,31 @@
|
|
1
|
-
jQuery.webshims.register("form-number-date-api",function(a,
|
2
|
-
parseInt("NaN",10),e
|
3
|
-
{}).stepMismatch;if(
|
4
|
-
function(b,c,d,
|
5
|
-
|
6
|
-
|
7
|
-
a:!1}};k={minDefault:0,maxDefault:100};
|
8
|
-
|
9
|
-
jQuery.webshims.register("form-number-date-ui",function(a,
|
10
|
-
Math.floor(Math.abs(
|
11
|
-
|
12
|
-
function(
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
b.
|
18
|
-
function(c){
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
a(
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
1
|
+
jQuery.webshims.register("form-number-date-api",function(a,e){var m,k,v;if(!e.getStep)e.getStep=function(i,b){var c=a.attr(i,"step");if("any"===c)return c;b=b||p(i);if(!f[b]||!f[b].step)return c;c=m.asNumber(c);return(!isNaN(c)&&0<c?c:f[b].step)*f[b].stepScaleFactor};if(!e.addMinMaxNumberToCache)e.addMinMaxNumberToCache=function(a,b,c){a+"AsNumber"in c||(c[a+"AsNumber"]=f[c.type].asNumber(b.attr(a)),isNaN(c[a+"AsNumber"])&&a+"Default"in f[c.type]&&(c[a+"AsNumber"]=f[c.type][a+"Default"]))};var h=
|
2
|
+
parseInt("NaN",10),f=e.inputTypes,q=function(a){return"number"==typeof a||a&&a==1*a},o=function(i){return a('<input type="'+i+'" />').prop("type")===i},p=function(a){return(a.getAttribute("type")||"").toLowerCase()},t=e.addMinMaxNumberToCache,j=function(a,b){for(var a=""+a,b=b-a.length,c=0;c<b;c++)a="0"+a;return a},u=e.bugs.valueAsNumberSet||e.bugs.bustedValidity;e.addValidityRule("stepMismatch",function(a,b,c,d){if(""===b)return!1;if(!("type"in c))c.type=p(a[0]);if("date"==c.type)return!1;d=(d||
|
3
|
+
{}).stepMismatch;if(f[c.type]&&f[c.type].step){if(!("step"in c))c.step=e.getStep(a[0],c.type);if("any"==c.step)return!1;if(!("valueAsNumber"in c))c.valueAsNumber=f[c.type].asNumber(b);if(isNaN(c.valueAsNumber))return!1;t("min",a,c);a=c.minAsNumber;isNaN(a)&&(a=f[c.type].stepBase||0);d=Math.abs((c.valueAsNumber-a)%c.step);d=!(1.0E-7>=d||1.0E-7>=Math.abs(d-c.step))}return d});[{name:"rangeOverflow",attr:"max",factor:1},{name:"rangeUnderflow",attr:"min",factor:-1}].forEach(function(a){e.addValidityRule(a.name,
|
4
|
+
function(b,c,d,l){l=(l||{})[a.name]||!1;if(""===c)return l;if(!("type"in d))d.type=p(b[0]);if(f[d.type]&&f[d.type].asNumber){if(!("valueAsNumber"in d))d.valueAsNumber=f[d.type].asNumber(c);if(isNaN(d.valueAsNumber))return!1;t(a.attr,b,d);if(isNaN(d[a.attr+"AsNumber"]))return l;l=d[a.attr+"AsNumber"]*a.factor<d.valueAsNumber*a.factor-1.0E-7}return l})});e.reflectProperties(["input"],["max","min","step"]);var r=e.defineNodeNameProperty("input","valueAsNumber",{prop:{get:function(){var i=p(this),i=f[i]&&
|
5
|
+
f[i].asNumber?f[i].asNumber(a.prop(this,"value")):r.prop._supget&&r.prop._supget.apply(this,arguments);null==i&&(i=h);return i},set:function(i){var b=p(this);f[b]&&f[b].numberToString?isNaN(i)?a.prop(this,"value",""):(b=f[b].numberToString(i),!1!==b?a.prop(this,"value",b):e.warn("INVALID_STATE_ERR: DOM Exception 11")):r.prop._supset&&r.prop._supset.apply(this,arguments)}}}),s=e.defineNodeNameProperty("input","valueAsDate",{prop:{get:function(){var i=p(this);return f[i]&&f[i].asDate&&!f[i].noAsDate?
|
6
|
+
f[i].asDate(a.prop(this,"value")):s.prop._supget&&s.prop._supget.call(this)||null},set:function(i){var b=p(this);if(f[b]&&f[b].dateToString&&!f[b].noAsDate){if(null===i)return a.prop(this,"value",""),"";b=f[b].dateToString(i);if(!1!==b)return a.prop(this,"value",b),b;e.warn("INVALID_STATE_ERR: DOM Exception 11")}else return s.prop._supset&&s.prop._supset.apply(this,arguments)||null}}});m={mismatch:function(a){return!q(a)},step:1,stepScaleFactor:1,asNumber:function(a){return q(a)?1*a:h},numberToString:function(a){return q(a)?
|
7
|
+
a:!1}};k={minDefault:0,maxDefault:100};v={mismatch:function(e){if(!e||!e.split||!/\d$/.test(e))return!0;var b=e.split(/\u002D/);if(3!==b.length)return!0;var c=!1;a.each(b,function(a,b){if(!(q(b)||b&&b=="0"+1*b))return c=!0,!1});if(c)return c;if(4!==b[0].length||2!=b[1].length||12<b[1]||2!=b[2].length||33<b[2])c=!0;return e!==this.dateToString(this.asDate(e,!0))},step:1,stepScaleFactor:864E5,asDate:function(a,b){return!b&&this.mismatch(a)?null:new Date(this.asNumber(a,!0))},asNumber:function(a,b){var c=
|
8
|
+
h;if(b||!this.mismatch(a))a=a.split(/\u002D/),c=Date.UTC(a[0],a[1]-1,a[2]);return c},numberToString:function(a){return q(a)?this.dateToString(new Date(1*a)):!1},dateToString:function(a){return a&&a.getFullYear?a.getUTCFullYear()+"-"+j(a.getUTCMonth()+1,2)+"-"+j(a.getUTCDate(),2):!1}};if(u||!o("range")||!o("time"))k=a.extend({},m,k);(u||!o("number"))&&e.addInputType("number",m);(u||!o("range"))&&e.addInputType("range",k);(u||!o("date"))&&e.addInputType("date",v)});
|
9
|
+
jQuery.webshims.register("form-number-date-ui",function(a,e,m,k,v,h){var f=e.triggerInlineForm,m=Modernizr.inputtypes,q=function(){var b={"padding-box":"innerWidth","border-box":"outerWidth","content-box":"width"},c=Modernizr.prefixed&&Modernizr.prefixed("boxSizing");a.browser.msie&&8>e.browserVersion&&(c=!1);return function(a,e){var f,i,h;i="width";c&&(i=b[a.css(c)]||i);f=a[i]();i="width"==i;if(f){var n=parseInt(e.css("marginLeft"),10)||0,w=e.outerWidth();(h=parseInt(a.css("marginRight"),10)||0)&&
|
10
|
+
a.css("marginRight",0);n<=-1*w?(e.css("marginRight",Math.floor(Math.abs(w+n-0.1)+h)),a.css("paddingRight",(parseInt(a.css("paddingRight"),10)||0)+Math.abs(n)),i&&a.css("width",Math.floor(f+n))):(e.css("marginRight",h),a.css("width",Math.floor(f-n-w-0.2)))}}}(),o={},p=a([]),t,j=function(b,c){a("input",b).add(c.filter("input")).each(function(){var b=a.prop(this,"type");if(j[b]&&!e.data(this,"shadowData"))j[b](a(this))})},u=function(b,c){if(h.lazyDate){var d=a.data(b[0],"setDateLazyTimer");d&&clearTimeout(d);
|
11
|
+
a.data(b[0],"setDateLazyTimer",setTimeout(function(){b.datepicker("setDate",c);a.removeData(b[0],"setDateLazyTimer");b=null},0))}else b.datepicker("setDate",c)},r={tabindex:1,tabIndex:1,title:1,"aria-required":1,"aria-invalid":1};if(!h.copyAttrs)h.copyAttrs={};e.extendUNDEFProp(h.copyAttrs,r);var s=function(a){return h.calculateWidth?{css:{marginRight:a.css("marginRight"),marginLeft:a.css("marginLeft")},outerWidth:a.outerWidth()}:{}};j.common=function(b,c,d){Modernizr.formvalidation&&b.bind("firstinvalid",
|
12
|
+
function(a){(e.fromSubmit||!t)&&b.unbind("invalid.replacedwidgetbubble").bind("invalid.replacedwidgetbubble",function(c){!a.isInvalidUIPrevented()&&!c.isDefaultPrevented()&&(e.validityAlert.showFor(a.target),a.preventDefault(),c.preventDefault());b.unbind("invalid.replacedwidgetbubble")})});var l,f,i=a("input, span.ui-slider-handle",c),j=b[0].attributes;for(l in h.copyAttrs)if((f=j[l])&&f.specified)r[l]&&i[0]?i.attr(l,f.nodeValue):c[0].setAttribute(l,f.nodeValue);l=(l=b.attr("id"))?a('label[for="'+
|
13
|
+
l+'"]',b[0].form):p;c.addClass(b[0].className);e.addShadowDom(b,c,{data:d||{},shadowFocusElement:a("input.input-datetime-local-date, span.ui-slider-handle",c)[0],shadowChilds:i});b.after(c);b[0].form&&a(b[0].form).bind("reset",function(a){a.originalEvent&&!a.isDefaultPrevented()&&setTimeout(function(){b.prop("value",b.prop("value"))},0)});l[0]&&(c.getShadowFocusElement().attr("aria-labelledby",e.getID(l)),l.bind("click",function(){b.getShadowFocusElement().focus();return!1}))};Modernizr.formvalidation&&
|
14
|
+
["input","form"].forEach(function(a){var c=e.defineNodeNameProperty(a,"checkValidity",{prop:{value:function(){t=!0;var a=c.prop._supvalue.apply(this,arguments);t=!1;return a}}})});if(!m.date||h.replaceUI){var i=function(b,c,d,l){var f,i,j=function(){n.dpDiv.unbind("mousedown.webshimsmousedownhandler");i=f=!1},n=c.bind("focusin",function(){j();n.dpDiv.unbind("mousedown.webshimsmousedownhandler").bind("mousedown.webshimsmousedownhandler",function(){f=!0})}).bind("focusout blur",function(a){f&&(i=!0,
|
15
|
+
a.stopImmediatePropagation())}).datepicker(a.extend({onClose:function(){i&&c.not(":focus")?(j(),c.trigger("focusout"),c.triggerHandler("blur")):j()}},o,h.datepicker,b.data("datepicker"))).bind("change",d).data("datepicker");n.dpDiv.addClass("input-date-datepicker-control");l&&e.triggerDomUpdate(l[0]);"disabled,min,max,value,step,data-placeholder".split(",").forEach(function(a){var c=b.attr(a);c&&b.attr(a,c)});return n};j.date=function(b){if(a.fn.datepicker){var c=a('<input class="input-date" type="text" />'),
|
16
|
+
d;this.common(b,c,j.date.attrs);d=i(b,c,function(d){j.date.blockAttr=!0;var e;if(h.lazyDate){var i=a.data(c[0],"setDateLazyTimer");i&&(clearTimeout(i),a.removeData(c[0],"setDateLazyTimer"))}try{e=(e=a.datepicker.parseDate(c.datepicker("option","dateFormat"),c.prop("value")))?a.datepicker.formatDate("yy-mm-dd",e):c.prop("value")}catch(m){e=c.prop("value")}b.prop("value",e);j.date.blockAttr=!1;d.stopImmediatePropagation();f(b[0],"input");f(b[0],"change")});a(b).bind("updateshadowdom",function(){if(d.trigger[0]&&
|
17
|
+
(b.css({display:""}),b[0].offsetWidth||b[0].offsetHeight)){var a=s(b);a.css&&(c.css(a.css),a.outerWidth&&c.outerWidth(a.outerWidth),q(c,d.trigger))}b.css({display:"none"})}).triggerHandler("updateshadowdom");d.trigger[0]&&setTimeout(function(){e.ready("WINDOWLOAD",function(){a(b).triggerHandler("updateshadowdom")})},9)}};j.date.attrs={disabled:function(b,c,d){a.prop(c,"disabled",!!d)},min:function(b,c,d){try{d=a.datepicker.parseDate("yy-mm-dd",d)}catch(e){d=!1}d&&a(c).datepicker("option","minDate",
|
18
|
+
d)},max:function(b,c,d){try{d=a.datepicker.parseDate("yy-mm-dd",d)}catch(e){d=!1}d&&a(c).datepicker("option","maxDate",d)},"data-placeholder":function(b,c,d){b=(d||"").split("-");3==b.length&&(d=a(c).datepicker("option","dateFormat").replace("yy",b[0]).replace("mm",b[1]).replace("dd",b[2]));a.prop(c,"placeholder",d)},value:function(b,c,d){if(!j.date.blockAttr){try{var e=a.datepicker.parseDate("yy-mm-dd",d)}catch(f){e=!1}e?u(a(c),e):a.prop(c,"value",d)}}}}if(!m.range||h.replaceUI)j.range=function(b){if(a.fn.slider){var c=
|
19
|
+
a('<span class="input-range"><span class="ui-slider-handle" role="slider" tabindex="0" /></span>');this.common(b,c,j.range.attrs);b.bind("updateshadowdom",function(){b.css({display:""});if(b[0].offsetWidth||b[0].offsetHeight){var a=s(b);a.css&&(c.css(a.css),a.outerWidth&&c.outerWidth(a.outerWidth))}b.css({display:"none"})}).triggerHandler("updateshadowdom");c.slider(a.extend(!0,{},h.slider,b.data("slider"))).bind("slide",function(a,c){if(a.originalEvent)j.range.blockAttr=!0,b.prop("value",c.value),
|
20
|
+
j.range.blockAttr=!1,f(b[0],"input"),f(b[0],"change")});["disabled","min","max","step","value"].forEach(function(c){var e=b.prop(c),f;"value"==c&&!e&&(f=b.getShadowElement())&&(e=(a(f).slider("option","max")-a(f).slider("option","min"))/2);null!=e&&b.prop(c,e)})}},j.range.attrs={disabled:function(b,c,d){d=!!d;a(c).slider("option","disabled",d);a("span",c).attr({"aria-disabled":d+"",tabindex:d?"-1":"0"})},min:function(b,c,d){d=d?1*d||0:0;a(c).slider("option","min",d);a("span",c).attr({"aria-valuemin":d})},
|
21
|
+
max:function(b,c,d){d=d||0===d?1*d||100:100;a(c).slider("option","max",d);a("span",c).attr({"aria-valuemax":d})},value:function(b,c,d){d=a(b).prop("valueAsNumber");isNaN(d)||(j.range.blockAttr||a(c).slider("option","value",d),a("span",c).attr({"aria-valuenow":d,"aria-valuetext":d}))},step:function(b,c,d){d=d&&a.trim(d)?1*d||1:1;a(c).slider("option","step",d)}};if(!e.bugs.valueAsNumberSet&&(h.replaceUI||!Modernizr.inputtypes.date||!Modernizr.inputtypes.range))m=function(){e.data(this,"hasShadow")&&
|
22
|
+
a.prop(this,"value",a.prop(this,"value"))},e.onNodeNamesPropertyModify("input","valueAsNumber",m),e.onNodeNamesPropertyModify("input","valueAsDate",m);a.each("disabled,min,max,value,step,data-placeholder".split(","),function(a,c){e.onNodeNamesPropertyModify("input",c,function(a){var b=e.data(this,"shadowData");if(b&&b.data&&b.data[c]&&b.nativeElement===this)b.data[c](this,b.shadowElement,a)})});if(!h.availabeLangs)h.availabeLangs="af ar ar-DZ az bg bs ca cs da de el en-AU en-GB en-NZ eo es et eu fa fi fo fr fr-CH gl he hr hu hy id is it ja ko kz lt lv ml ms nl no pl pt-BR rm ro ru sk sl sq sr sr-SR sv ta th tr uk vi zh-CN zh-HK zh-TW".split(" ");
|
23
|
+
m=function(){a.datepicker&&(e.activeLang({langObj:a.datepicker.regional,module:"form-number-date-ui",callback:function(b){b=a.extend({},o,b,h.datepicker);b.dateFormat&&h.datepicker.dateFormat!=b.dateFormat&&a("input.hasDatepicker").filter(".input-date, .input-datetime-local-date").datepicker("option","dateFormat",b.dateFormat).getNativeElement().filter("[data-placeholder]").attr("data-placeholder",function(a,b){return b});a.datepicker.setDefaults(b)}}),a(k).unbind("jquery-uiReady.langchange input-widgetsReady.langchange"))};
|
24
|
+
a(k).bind("jquery-uiReady.langchange input-widgetsReady.langchange",m);m();(function(){var b=function(){var b={};return function(c){return c in b?b[c]:b[c]=a('<input type="'+c+'" />')[0].type===c}}();if(!b("number")){var c=e.cfg["forms-ext"],d=e.inputTypes,i=function(b,c,g){g=g||{};if(!("type"in g))g.type=a.prop(b,"type");if(!("step"in g))g.step=e.getStep(b,g.type);if(!("valueAsNumber"in g))g.valueAsNumber=d[g.type].asNumber(a.prop(b,"value"));var f="any"==g.step?d[g.type].step*d[g.type].stepScaleFactor:
|
25
|
+
g.step;e.addMinMaxNumberToCache("min",a(b),g);e.addMinMaxNumberToCache("max",a(b),g);if(isNaN(g.valueAsNumber))g.valueAsNumber=d[g.type].stepBase||0;if("any"!==g.step&&(b=Math.round(1E7*((g.valueAsNumber-(g.minAsnumber||0))%g.step))/1E7)&&Math.abs(b)!=g.step)g.valueAsNumber-=b;b=g.valueAsNumber+f*c;return b=!isNaN(g.minAsNumber)&&b<g.minAsNumber?g.valueAsNumber*c<g.minAsNumber?g.minAsNumber:isNaN(g.maxAsNumber)?g.valueAsNumber:g.maxAsNumber:!isNaN(g.maxAsNumber)&&b>g.maxAsNumber?g.valueAsNumber*c>
|
26
|
+
g.maxAsNumber?g.maxAsNumber:isNaN(g.minAsNumber)?g.valueAsNumber:g.minAsNumber:Math.round(1E7*b)/1E7};e.modules["form-number-date-ui"].getNextStep=i;var j=function(b,c,e){if(!b.disabled&&!b.readOnly&&!a(e).hasClass("step-controls")&&(a.prop(b,"value",d[c].numberToString(i(b,a(e).hasClass("step-up")?1:-1,{type:c}))),a(b).unbind("blur.stepeventshim"),f(b,"input"),k.activeElement)){if(k.activeElement!==b)try{b.focus()}catch(h){}setTimeout(function(){if(k.activeElement!==b)try{b.focus()}catch(c){}a(b).one("blur.stepeventshim",
|
27
|
+
function(){f(b,"change")})},0)}};if(c.stepArrows){var h={set:function(){var a=e.data(this,"step-controls");if(a)a[this.disabled||this.readonly?"addClass":"removeClass"]("disabled-step-control")}};e.onNodeNamesPropertyModify("input","disabled",h);e.onNodeNamesPropertyModify("input","readonly",a.extend({},h))}var m={38:1,40:-1};e.addReady(function(h,k){c.stepArrows&&a("input",h).add(k.filter("input")).each(function(){var g=a.prop(this,"type");if(d[g]&&d[g].asNumber&&c.stepArrows&&!(!0!==c.stepArrows&&
|
28
|
+
!c.stepArrows[g]||b(g)||a(h).hasClass("has-step-controls"))){var h=this,k=a('<span class="step-controls" unselectable="on"><span class="step-up" /><span class="step-down" /></span>').insertAfter(h).bind("selectstart dragstart",function(){return!1}).bind("mousedown mousepress",function(a){j(h,g,a.target);return!1}).bind("mousepressstart mousepressend",function(b){a(b.target)["mousepressstart"==b.type?"addClass":"removeClass"]("mousepress-ui")}),o=function(b,c){if(!h.disabled&&!h.readOnly&&c)return a.prop(h,
|
29
|
+
"value",d[g].numberToString(i(h,c,{type:g}))),f(h,"input"),!1},n=a(h).addClass("has-step-controls").attr({readonly:h.readOnly,disabled:h.disabled,autocomplete:"off",role:"spinbutton"}).bind(a.browser.msie?"keydown":"keypress",function(b){if(!h.disabled&&!h.readOnly&&m[b.keyCode])return a.prop(h,"value",d[g].numberToString(i(h,m[b.keyCode],{type:g}))),f(h,"input"),!1});"number"==g&&n.bind("keypress",function(){return function(a){var b=String.fromCharCode(null==a.charCode?a.keyCode:a.charCode);return a.ctrlKey||
|
30
|
+
a.metaKey||" ">b||-1<"0123456789.".indexOf(b)}}());a.fn.mwheelIntent?n.add(k).bind("mwheelIntent",o):a.fn.mousewheel&&n.bind("focus",function(){n.add(k).unbind(".mwhellwebshims").bind("mousewheel.mwhellwebshims",o)}).bind("blur",function(){a(h).add(k).unbind(".mwhellwebshims")});e.data(h,"step-controls",k);if(c.calculateWidth){var p;n.bind("updateshadowdom",function(){if(!p&&(h.offsetWidth||h.offsetHeight))p=!0,q(n,k),k.css("marginTop",(n.outerHeight()-k.outerHeight())/2)}).triggerHandler("updateshadowdom")}}})})}})();
|
31
|
+
e.addReady(function(b,c){a(k).bind("jquery-uiReady.initinputui input-widgetsReady.initinputui",function(){if(a.datepicker||a.fn.slider){if(a.datepicker&&!o.dateFormat)o.dateFormat=a.datepicker._defaults.dateFormat;j(b,c)}a.datepicker&&a.fn.slider?a(k).unbind(".initinputui"):e.modules["input-widgets"].src||e.warn('jQuery UI Widget factory is already included, but not datepicker or slider. configure src of $.webshims.modules["input-widgets"].src')})})});
|