Commit 030896c0 authored by Dries's avatar Dries

- Patch #325901 by cyberswat: upgrade jQuery Form Plugin to latest version.

parent b5f3c009
......@@ -2,12 +2,12 @@
/*
* jQuery Form Plugin
* version: 2.01 (10/31/2007)
* @requires jQuery v1.1 or later
* version: 2.16 (17-OCT-2008)
* @requires jQuery v1.2.2 or later
*
* Examples at: http://malsup.com/jquery/form/
* Examples and documentation at: http://malsup.com/jquery/form/
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*/
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(5($){$.7.1j=5(o){2(P o==\'5\')o={L:o};o=$.2h({1h:4.X(\'2i\')||1E.2u.3D(),I:4.X(\'2g\')||\'29\'},o||{});3 p={};$.M.N(\'R.2P.2L\',[4,o,p]);2(p.1Q)6 4;3 a=4.1z(o.2r);2(o.V){H(3 n 3u o.V)a.C({z:n,A:o.V[n]})}2(o.28&&o.28(a,4,o)===E)6 4;$.M.N(\'R.K.36\',[a,4,o,p]);2(p.1Q)6 4;3 q=$.1x(a);2(o.I.31()==\'29\'){o.1h+=(o.1h.2Z(\'?\')>=0?\'&\':\'?\')+q;o.V=B}8 o.V=q;3 r=4,U=[];2(o.1r)U.C(5(){r.1r()});2(o.1o)U.C(5(){r.1o()});2(!o.18&&o.14){3 u=o.L||5(){};U.C(5(a){2(4.1N)$(o.14).X("1M",a).1N().D(u,1L);8 $(o.14).2t(a).D(u,1L)})}8 2(o.L)U.C(o.L);o.L=5(a,b){H(3 i=0,F=U.G;i<F;i++)U[i](a,b,r)};3 v=$(\'19:3v\',4).15();3 w=E;H(3 j=0;j<v.G;j++)2(v[j])w=T;2(o.2f||w){2($.1i.3o&&o.2a)$.3l(o.2a,1l);8 1l()}8 $.3h(o);$.M.N(\'R.K.3f\',[4,o]);6 4;5 1l(){3 d=r[0];3 f=$.2h({},$.39,o);3 h=\'35\'+$.7.1j.1a++;3 i=$(\'<2f 33="\'+h+\'" z="\'+h+\'" />\');3 j=i[0];3 k=$.1i.20&&1E.20.30()<9;2($.1i.1X||k)j.2Y=\'2W:E;1w.2U("");\';i.2S({2R:\'2Q\',23:\'-24\',1R:\'-24\'});3 l={Z:B,1b:B,2K:0,2J:\'n/a\',2H:5(){},2F:5(){},2E:5(){}};3 g=f.2B;2(g&&!$.1O++)$.M.N("2x");2(g)$.M.N("2w",[l,f]);3 m=0;3 n=0;1f(5(){i.2v(\'1n\');j.1K?j.1K(\'1J\',12):j.2s(\'1I\',12,E);3 a=d.1H?\'1H\':\'2q\';3 t=r.X(\'14\');r.X({14:h,2g:\'3C\',2i:f.1h});d[a]=\'3B/R-V\';2(f.1G)1f(5(){n=T;12()},f.1G);d.K();r.X(\'14\',t)},10);5 12(){2(m++)6;j.2o?j.2o(\'1J\',12):j.3A(\'1I\',12,E);3 a=T;3z{2(n)3x\'1G\';3 b,O;O=j.2n?j.2n.1w:j.2l?j.2l:j.1w;l.Z=O.1n?O.1n.1M:B;l.1b=O.2k?O.2k:O;2(f.18==\'2j\'||f.18==\'3s\'){3 c=O.1D(\'1C\')[0];b=c?c.A:l.Z;2(f.18==\'2j\')3r("V = "+b);8 $.3q(b)}8 2(f.18==\'2m\'){b=l.1b;2(!b&&l.Z!=B)b=2d(l.Z)}8{b=l.Z}}3p(e){a=E;$.3n(f,l,\'2b\',e)}2(a){f.L(b,\'L\');2(g)$.M.N("3m",[l,f])}2(g)$.M.N("3k",[l,f]);2(g&&!--$.1O)$.M.N("3j");2(f.27)f.27(l,a?\'L\':\'2b\');1f(5(){i.3i();l.1b=B},3g)};5 2d(s,a){2(1E.26){a=25 26(\'3d.3c\');a.3b=\'E\';a.3a(s)}8 a=(25 38()).37(s,\'1A/2m\');6(a&&a.22&&a.22.1e!=\'34\')?a:B}}};$.7.1j.1a=0;$.7.W=5(a){6 4.21().K(1m).D(5(){4.1u=$.7.W.1a++;$.7.W.1t[4.1u]=a;$(":K,19:Y",4).1Z(1s)})};$.7.W.1a=1;$.7.W.1t={};5 1s(e){3 a=4.R;a.Q=4;2(4.I==\'Y\'){2(e.1Y!=S){a.11=e.1Y;a.16=e.2X}8 2(P $.7.1U==\'5\'){3 b=$(4).1U();a.11=e.1V-b.1R;a.16=e.1W-b.23}8{a.11=e.1V-4.2V;a.16=e.1W-4.32}}1f(5(){a.Q=a.11=a.16=B},10)};5 1m(){3 a=4.1u;3 b=$.7.W.1t[a];$(4).1j(b);6 E};$.7.21=5(){4.1T(\'K\',1m);6 4.D(5(){$(":K,19:Y",4).1T(\'1Z\',1s)})};$.7.1z=5(b){3 a=[];2(4.G==0)6 a;3 c=4[0];3 d=b?c.1D(\'*\'):c.2T;2(!d)6 a;H(3 i=0,F=d.G;i<F;i++){3 e=d[i];3 n=e.z;2(!n)1v;2(b&&c.Q&&e.I=="Y"){2(!e.1d&&c.Q==e)a.C({z:n+\'.x\',A:c.11},{z:n+\'.y\',A:c.16});1v}3 v=$.15(e,T);2(v&&v.1c==1g){H(3 j=0,1S=v.G;j<1S;j++)a.C({z:n,A:v[j]})}8 2(v!==B&&P v!=\'S\')a.C({z:n,A:v})}2(!b&&c.Q){3 f=c.1D("19");H(3 i=0,F=f.G;i<F;i++){3 g=f[i];3 n=g.z;2(n&&!g.1d&&g.I=="Y"&&c.Q==g)a.C({z:n+\'.x\',A:c.11},{z:n+\'.y\',A:c.16})}}6 a};$.7.2O=5(a){6 $.1x(4.1z(a))};$.7.2N=5(b){3 a=[];4.D(5(){3 n=4.z;2(!n)6;3 v=$.15(4,b);2(v&&v.1c==1g){H(3 i=0,F=v.G;i<F;i++)a.C({z:n,A:v[i]})}8 2(v!==B&&P v!=\'S\')a.C({z:4.z,A:v})});6 $.1x(a)};$.7.15=5(a){H(3 b=[],i=0,F=4.G;i<F;i++){3 c=4[i];3 v=$.15(c,a);2(v===B||P v==\'S\'||(v.1c==1g&&!v.G))1v;v.1c==1g?$.3e(b,v):b.C(v)}6 b};$.15=5(b,c){3 n=b.z,t=b.I,13=b.1e.1F();2(P c==\'S\')c=T;2(c&&(!n||b.1d||t==\'17\'||t==\'2M\'||(t==\'1q\'||t==\'1B\')&&!b.1p||(t==\'K\'||t==\'Y\')&&b.R&&b.R.Q!=b||13==\'J\'&&b.1y==-1))6 B;2(13==\'J\'){3 d=b.1y;2(d<0)6 B;3 a=[],1k=b.2I;3 e=(t==\'J-2e\');3 f=(e?d+1:1k.G);H(3 i=(e?d:0);i<f;i++){3 g=1k[i];2(g.2c){3 v=$.1i.1X&&!(g.2G[\'A\'].3t)?g.1A:g.A;2(e)6 v;a.C(v)}}6 a}6 b.A};$.7.1o=5(){6 4.D(5(){$(\'19,J,1C\',4).2p()})};$.7.2p=$.7.2D=5(){6 4.D(5(){3 t=4.I,13=4.1e.1F();2(t==\'1A\'||t==\'3w\'||13==\'1C\')4.A=\'\';8 2(t==\'1q\'||t==\'1B\')4.1p=E;8 2(13==\'J\')4.1y=-1})};$.7.1r=5(){6 4.D(5(){2(P 4.17==\'5\'||(P 4.17==\'2C\'&&!4.17.3y))4.17()})};$.7.2A=5(b){2(b==S)b=T;6 4.D(5(){4.1d=!b})};$.7.J=5(b){2(b==S)b=T;6 4.D(5(){3 t=4.I;2(t==\'1q\'||t==\'1B\')4.1p=b;8 2(4.1e.1F()==\'1P\'){3 a=$(4).2z(\'J\');2(b&&a[0]&&a[0].I==\'J-2e\'){a.2y(\'1P\').J(E)}4.2c=b}})}})(3E);',62,227,'||if|var|this|function|return|fn|else|||||||||||||||||||||||||||name|value|null|push|each|false|max|length|for|type|select|submit|success|event|trigger|doc|typeof|clk|form|undefined|true|callbacks|data|ajaxForm|attr|image|responseText||clk_x|cb|tag|target|fieldValue|clk_y|reset|dataType|input|counter|responseXML|constructor|disabled|tagName|setTimeout|Array|url|browser|ajaxSubmit|ops|fileUpload|submitHandler|body|clearForm|checked|checkbox|resetForm|clickHandler|optionHash|formPluginId|continue|document|param|selectedIndex|formToArray|text|radio|textarea|getElementsByTagName|window|toLowerCase|timeout|encoding|load|onload|attachEvent|arguments|innerHTML|evalScripts|active|option|veto|left|jmax|unbind|offset|pageX|pageY|msie|offsetX|click|opera|ajaxFormUnbind|documentElement|top|1000px|new|ActiveXObject|complete|beforeSubmit|GET|closeKeepAlive|error|selected|toXml|one|iframe|method|extend|action|json|XMLDocument|contentDocument|xml|contentWindow|detachEvent|clearFields|enctype|semantic|addEventListener|html|location|appendTo|ajaxSend|ajaxStart|find|parent|enable|global|object|clearInputs|setRequestHeader|getResponseHeader|attributes|getAllResponseHeaders|options|statusText|status|serialize|button|fieldSerialize|formSerialize|pre|absolute|position|css|elements|write|offsetLeft|javascript|offsetY|src|indexOf|version|toUpperCase|offsetTop|id|parsererror|jqFormIO|validate|parseFromString|DOMParser|ajaxSettings|loadXML|async|XMLDOM|Microsoft|merge|notify|100|ajax|remove|ajaxStop|ajaxComplete|get|ajaxSuccess|handleError|safari|catch|globalEval|eval|script|specified|in|file|password|throw|nodeType|try|removeEventListener|multipart|POST|toString|jQuery'.split('|'),0,{}))
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}(';(7($){$.p.Q=7(6){2(!4.B){R(\'Q: 2T r 2U - 2V 2W 19\');8 4}2(M 6==\'7\')6={N:6};6=$.1k({1l:4.I(\'1m\')||1a.2X.2Y(),C:4.I(\'24\')||\'25\'},6||{});3 S={};4.H(\'5-26-27\',[4,6,S]);2(S.S){R(\'Q: r 28 1x 5-26-27 H\');8 4}3 a=4.1y(6.T);2(6.h){6.J=6.h;F(3 n 1z 6.h){2(6.h[n]2Z 11){F(3 k 1z 6.h[n])a.u({9:n,o:6.h[n][k]})}w a.u({9:n,o:6.h[n]})}}2(6.1A&&6.1A(a,4,6)===G){R(\'Q: r 1n 1x 1A 30\');8 4}4.H(\'5-r-29\',[a,4,6,S]);2(S.S){R(\'Q: r 28 1x 5-r-29 H\');8 4}3 q=$.1B(a);2(6.C.31()==\'25\'){6.1l+=(6.1l.32(\'?\')>=0?\'&\':\'?\')+q;6.h=z}w 6.h=q;3 $5=4,U=[];2(6.1C)U.u(7(){$5.1C()});2(6.1D)U.u(7(){$5.1D()});2(!6.12&&6.13){3 2a=6.N||7(){};U.u(7(h){$(6.13).33(h).K(2a,2b)})}w 2(6.N)U.u(6.N);6.N=7(h,1E){F(3 i=0,D=U.B;i<D;i++)U[i].34(6,[h,1E,$5])};3 1F=$(\'E:35\',4).14();3 1G=G;F(3 j=0;j<1F.B;j++)2(1F[j])1G=L;2(6.2c||1G){2($.1b.36&&6.2d)$.37(6.2d,1H);w 1H()}w $.38(6);4.H(\'5-r-39\',[4,6]);8 4;7 1H(){3 5=$5[0];2($(\':E[@9=r]\',5).B){3a(\'3b: 3c 2e 3d 3e 3f 3g "r".\');8}3 l=$.1k({},$.2f,6);3 s=1I.1k(L,{},$.1k(L,{},$.2f),l);3 1c=\'3h\'+(1J 3i().3j());3 $d=$(\'<2c 1c="\'+1c+\'" 9="\'+1c+\'" />\');3 d=$d[0];2($.1b.2g||$.1b.2h)d.2i=\'3k:G;1K.3l("");\';$d.3m({3n:\'3o\',2j:\'-2k\',2l:\'-2k\'});3 f={1n:0,15:z,1d:z,1E:0,3p:\'n/a\',3q:7(){},2m:7(){},3r:7(){},3s:7(){4.1n=1;$d.I(\'2i\',\'3t:3u\')}};3 g=l.2n;2(g&&!$.1L++)$.1e.H("3v");2(g)$.1e.H("3w",[f,l]);2(s.2o&&s.2o(f,s)===G){s.2n&&1I.1L--;8}2(f.1n)8;3 1M=0;3 1N=0;3 16=5.O;2(16){3 n=16.9;2(n&&!16.1f){6.J=6.J||{};6.J[n]=16.o;2(16.C=="V"){6.J[9+\'.x\']=5.W;6.J[9+\'.y\']=5.X}}}1g(7(){3 t=$5.I(\'13\'),a=$5.I(\'1m\');$5.I({13:1c,24:\'3x\',1m:l.1l});2(!6.3y){$5.I({3z:\'2p/5-h\',3A:\'2p/5-h\'})}2(l.1O)1g(7(){1N=L;Y()},l.1O);3 1P=[];2q{2(6.J)F(3 n 1z 6.J)1P.u($(\'<E C="3B" 9="\'+n+\'" o="\'+6.J[n]+\'" />\').2r(5)[0]);$d.2r(\'1o\');d.2s?d.2s(\'2t\',Y):d.3C(\'2u\',Y,G);5.r()}3D{$5.I(\'1m\',a);t?$5.I(\'13\',t):$5.3E(\'13\');$(1P).2v()}},10);7 Y(){2(1M++)8;d.2w?d.2w(\'2t\',Y):d.3F(\'2u\',Y,G);3 1Q=0;3 1p=L;2q{2(1N)3G\'1O\';3 h,m;m=d.2x?d.2x.1K:d.2y?d.2y:d.1K;2(m.1o==z&&!1Q&&$.1b.2h){1Q=1;1M--;1g(Y,2z);8}f.15=m.1o?m.1o.3H:z;f.1d=m.2A?m.2A:m;f.2m=7(2B){3 2C={\'3I-C\':l.12};8 2C[2B]};2(l.12==\'3J\'||l.12==\'3K\'){3 1R=m.1S(\'1T\')[0];f.15=1R?1R.o:f.15}w 2(l.12==\'2D\'&&!f.1d&&f.15!=z){f.1d=2E(f.15)}h=$.3L(f,l.12)}3M(e){1p=G;$.3N(l,f,\'2F\',e)}2(1p){l.N(h,\'N\');2(g)$.1e.H("3O",[f,l])}2(g)$.1e.H("3P",[f,l]);2(g&&!--$.1L)$.1e.H("3Q");2(l.2G)l.2G(f,1p?\'N\':\'2F\');1g(7(){$d.2v();f.1d=z},2z)};7 2E(s,m){2(1a.2H){m=1J 2H(\'3R.3S\');m.3T=\'G\';m.3U(s)}w m=(1J 3V()).3W(s,\'1U/2D\');8(m&&m.2I&&m.2I.1q!=\'3X\')?m:z}}};$.p.3Y=7(6){8 4.2J().2K(\'r.5-1r\',7(){$(4).Q(6);8 G}).K(7(){$(":r,E:V",4).2K(\'2L.5-1r\',7(e){3 5=4.5;5.O=4;2(4.C==\'V\'){2(e.2M!=Z){5.W=e.2M;5.X=e.3Z}w 2(M $.p.1h==\'7\'){3 1h=$(4).1h();5.W=e.2N-1h.2l;5.X=e.2O-1h.2j}w{5.W=e.2N-4.40;5.X=e.2O-4.41}}1g(7(){5.O=5.W=5.X=z},10)})})};$.p.2J=7(){4.2P(\'r.5-1r\');8 4.K(7(){$(":r,E:V",4).2P(\'2L.5-1r\')})};$.p.1y=7(T){3 a=[];2(4.B==0)8 a;3 5=4[0];3 1s=T?5.1S(\'*\'):5.2e;2(!1s)8 a;F(3 i=0,D=1s.B;i<D;i++){3 c=1s[i];3 n=c.9;2(!n)1V;2(T&&5.O&&c.C=="V"){2(!c.1f&&5.O==c)a.u({9:n+\'.x\',o:5.W},{9:n+\'.y\',o:5.X});1V}3 v=$.14(c,L);2(v&&v.1t==11){F(3 j=0,2Q=v.B;j<2Q;j++)a.u({9:n,o:v[j]})}w 2(v!==z&&M v!=\'Z\')a.u({9:n,o:v})}2(!T&&5.O){3 1W=5.1S("E");F(3 i=0,D=1W.B;i<D;i++){3 E=1W[i];3 n=E.9;2(n&&!E.1f&&E.C=="V"&&5.O==E)a.u({9:n+\'.x\',o:5.W},{9:n+\'.y\',o:5.X})}}8 a};$.p.42=7(T){8 $.1B(4.1y(T))};$.p.43=7(P){3 a=[];4.K(7(){3 n=4.9;2(!n)8;3 v=$.14(4,P);2(v&&v.1t==11){F(3 i=0,D=v.B;i<D;i++)a.u({9:n,o:v[i]})}w 2(v!==z&&M v!=\'Z\')a.u({9:4.9,o:v})});8 $.1B(a)};$.p.14=7(P){F(3 1u=[],i=0,D=4.B;i<D;i++){3 c=4[i];3 v=$.14(c,P);2(v===z||M v==\'Z\'||(v.1t==11&&!v.B))1V;v.1t==11?$.44(1u,v):1u.u(v)}8 1u};$.14=7(c,P){3 n=c.9,t=c.C,17=c.1q.1X();2(M P==\'Z\')P=L;2(P&&(!n||c.1f||t==\'1i\'||t==\'45\'||(t==\'1Y\'||t==\'1Z\')&&!c.20||(t==\'r\'||t==\'V\')&&c.5&&c.5.O!=c||17==\'A\'&&c.21==-1))8 z;2(17==\'A\'){3 1v=c.21;2(1v<0)8 z;3 a=[],22=c.6;3 18=(t==\'A-18\');3 D=(18?1v+1:22.B);F(3 i=(18?1v:0);i<D;i++){3 1j=22[i];2(1j.19){3 v=$.1b.2g&&!(1j.46[\'o\'].47)?1j.1U:1j.o;2(18)8 v;a.u(v)}}8 a}8 c.o};$.p.1D=7(){8 4.K(7(){$(\'E,A,1T\',4).2R()})};$.p.2R=$.p.48=7(){8 4.K(7(){3 t=4.C,17=4.1q.1X();2(t==\'1U\'||t==\'49\'||17==\'1T\')4.o=\'\';w 2(t==\'1Y\'||t==\'1Z\')4.20=G;w 2(17==\'A\')4.21=-1})};$.p.1C=7(){8 4.K(7(){2(M 4.1i==\'7\'||(M 4.1i==\'4a\'&&!4.1i.4b))4.1i()})};$.p.4c=7(b){2(b==Z)b=L;8 4.K(7(){4.1f=!b})};$.p.19=7(A){2(A==Z)A=L;8 4.K(7(){3 t=4.C;2(t==\'1Y\'||t==\'1Z\')4.20=A;w 2(4.1q.1X()==\'2S\'){3 $1w=$(4).4d(\'A\');2(A&&$1w[0]&&$1w[0].C==\'A-18\'){$1w.4e(\'2S\').19(G)}4.19=A}})};7 R(){2($.p.Q.4f&&1a.23&&1a.23.R)1a.23.R(\'[4g.5] \'+11.4h.4i.4j(2b,\'\'))}})(1I);',62,268,'||if|var|this|form|options|function|return|name|||el|io||xhr||data||||opts|doc||value|fn||submit|||push||else|||null|select|length|type|max|input|for|false|trigger|attr|extraData|each|true|typeof|success|clk|successful|ajaxSubmit|log|veto|semantic|callbacks|image|clk_x|clk_y|cb|undefined||Array|dataType|target|fieldValue|responseText|sub|tag|one|selected|window|browser|id|responseXML|event|disabled|setTimeout|offset|reset|op|extend|url|action|aborted|body|ok|tagName|plugin|els|constructor|val|index|sel|via|formToArray|in|beforeSubmit|param|resetForm|clearForm|status|files|found|fileUpload|jQuery|new|document|active|cbInvoked|timedOut|timeout|extraInputs|operaHack|ta|getElementsByTagName|textarea|text|continue|inputs|toLowerCase|checkbox|radio|checked|selectedIndex|ops|console|method|GET|pre|serialize|vetoed|validate|oldSuccess|arguments|iframe|closeKeepAlive|elements|ajaxSettings|msie|opera|src|top|1000px|left|getResponseHeader|global|beforeSend|multipart|try|appendTo|attachEvent|onload|load|remove|detachEvent|contentWindow|contentDocument|100|XMLDocument|header|headers|xml|toXml|error|complete|ActiveXObject|documentElement|ajaxFormUnbind|bind|click|offsetX|pageX|pageY|unbind|jmax|clearFields|option|skipping|process|no|element|location|toString|instanceof|callback|toUpperCase|indexOf|html|apply|file|safari|get|ajax|notify|alert|Error|Form|must|not|be|named|jqFormIO|Date|getTime|javascript|write|css|position|absolute|statusText|getAllResponseHeaders|setRequestHeader|abort|about|blank|ajaxStart|ajaxSend|POST|skipEncodingOverride|encoding|enctype|hidden|addEventListener|finally|removeAttr|removeEventListener|throw|innerHTML|content|json|script|httpData|catch|handleError|ajaxSuccess|ajaxComplete|ajaxStop|Microsoft|XMLDOM|async|loadXML|DOMParser|parseFromString|parsererror|ajaxForm|offsetY|offsetLeft|offsetTop|formSerialize|fieldSerialize|merge|button|attributes|specified|clearInputs|password|object|nodeType|enable|parent|find|debug|jquery|prototype|join|call'.split('|'),0,{}))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment