Changeset 11099


Ignore:
Timestamp:
05/29/11 23:27:34 (8 years ago)
Author:
nikrou
Message:

Improve javascript and fix some issues

Location:
extensions/user_tags
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/CHANGELOG

    r11092 r11099  
     1User Tags 0.5.2 - 2011-05-29 
     2================================ 
     3* Improve javascript and fix some issues 
     4 
    15User Tags 0.5.1 - 2011-05-29 
    26================================ 
  • extensions/user_tags/js/jquery.addtags.js

    r11092 r11099  
    1 eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('(6($){7 3s={1U:"4T 4S a 4U 2Y",2u:"4V w",2r:"4X...",3A:"&4W;",3R:4R,2H:1,1e:C,1u:C,2i:"4Q",49:"4L",47:"q",2P:",",2L:J,2R:C,3N:J,4b:1F,16:C,2l:C,2y:C,2Q:J};7 26={3y:"c-B-4K",c:"c-B-c",3i:"c-B-4M-c",3C:"c-B-1n-c",2A:"c-B-3t-c",2Z:"c-B-4N-c",G:"c-B-G",4o:"c-B-G-D",4p:"c-B-G-4P",2q:"c-B-3t-G-D",3z:"c-B-B-c"};7 S={2B:0,1S:1,1o:2};7 y={3k:8,3j:9,3m:13,3o:27,4Y:32,4Z:33,59:34,1o:35,58:36,2d:37,2c:38,2b:39,2a:40,3n:5a,3p:5b};$.4i.3Y=6(1b,1Q){7 3=$.2G({},3s,1Q||{});r k.Q(6(){1n $.25(k,1b,3)})};$.25=6(B,1b,3){4(3u(1b)==="5d"){3.W=1b;4(3.22===4J){4(3.W.31("://")===-1){3.22=J}h{3.22=(57.56.1y(/\\/+/g)[1]!==3.W.1y(/\\/+/g)[1])}}}h 4(3u(1b)==="50"){3.2X=1b}4(3.u){3.u=$.2G({},26,3.u)}h 4(3.2t){3.u={};$.Q(26,6(3v,l){3.u[3v]=l+"-"+3.2t})}h{3.u=26}7 Z=[];7 19=0;7 1H=1n $.25.3W();7 2p;7 1J;7 n=$("<B 1E=\\"2D\\"  53=\\"55\\">").17({54:"5e"}).X(6(){4(3.1e===C||3.1e!==19){4k()}}).20(6(){10()}).4H("4s 3x 20 1I",3I).3x(6(o){7 V;7 1h;4x(o.U){O y.2d:O y.2b:O y.2c:O y.2a:4(!$(k).v()){V=R.2J();1h=R.3q();4((V.E&&V.A(0)===x)||(1h.E&&1h.A(0)===x)){4(o.U===y.2d||o.U===y.2c){1d($(x),S.2B)}h{1d($(x),S.1S)}}h 4((o.U===y.2d||o.U===y.2c)&&V.E){1m($(V.A(0)))}h 4((o.U===y.2b||o.U===y.2a)&&1h.E){1m($(1h.A(0)))}}h{7 1s=C;4(o.U===y.2a||o.U===y.2b){1s=$(N).3q()}h{1s=$(N).2J()}4(1s.E){1W(1s)}r J}2e;O y.3k:V=R.2J();4(!$(k).v().E){4(x){2F($(x))}h 4(V.E){1m($(V.A(0)))}r J}h 4($(k).v().E===1){10()}h{2z(6(){2w()},5)}2e;O y.3j:O y.3m:O y.3n:O y.3p:4(N){2M($(N));r J}h 4(3.2Q){4($(k).v().E>0){2h($(k).v(),$(k).v(),1F);$(k).v("")}r J}2e;O y.3o:10();r 1F;4A:4(4G.4F(o.4u)){2z(6(){2w()},5)}2e}});7 M=$(B).1g().v("").X(6(){n.X()}).20(6(){n.20()});7 x=C;7 P=0;7 N=C;7 1c=$("<4d />").I(3.u.3y).23(6(o){7 t=$(o.1r).1z("t");4(t&&t.A(0)&&$.f(t.A(0),"1j")){3F(t)}h{4(x){1d($(x),S.1o)}n.X()}}).4m(6(o){7 t=$(o.1r).1z("t");4(t&&x!==k){t.I(3.u.2Z)}}).5Q(6(o){7 t=$(o.1r).1z("t");4(t&&x!==k){t.28(3.u.2Z)}}).2C(M);7 R=$("<t />").I(3.u.3z).1l(1c).1C(n);7 G=$("<18>").I(3.u.G).1l("5R").1g();7 3a=$("<5S/>").2x(n).17({1x:"3b",2s:-3K,2v:-3K,2W:"5T",3J:n.17("3J"),3L:n.17("3L"),3M:n.17("3M"),3O:n.17("3O"),5O:"5K"});M.v("");7 H=3.2R||M.f("5J");4(3.3N&&$.1t(3.16)){H=3.16.1w(M,H)}4(H&&H.E){$.Q(H,6(K,l){2E(l.d,l.z)})}6 3I(){4(1J===(1J=n.v())){r}7 3H=1J.1v(/&/g,\'&5U;\').1v(/\\s/g,\' \').1v(/</g,\'&5W;\').1v(/>/g,\'&5X;\');3a.1f(3H);n.2W(3a.2W()+30)}6 5Y(T){r((T>=48&&T<=5Z)||(T>=61&&T<=5M)||(T>=5H&&T<=5p)||(T>=5o&&T<=5r))}6 3G(d,l){2T(d,l,3.u.3C)}6 2E(d,l){2T(d,l,3.u.c)}6 2T(d,l,3B){7 21=$("<t><1R>"+l+"</1R></t>").I(3B).2C(R);$("<1R>"+3.3A+"</1R>").I(3.u.3i).1l(21).23(6(){2F($(k).5i());r J});7 11={"d":d,"z":l};$.f(21.A(0),"1j",11);Z=Z.1P(0,P).2S([11]).2S(Z.1P(P));P++;7 1O=$.3f(Z,6(1L){r 1L.d});M.v(1O.3h(3.2P));19+=1;r 21}6 2M(D){7 11=$.f(D.A(0),"1j")2h(11.d,11.z,J)}6 2h(d,z,3E){7 H={d:d,z:z};7 1i=3.2l;4(19>0&&3.2L){7 1A=C;1c.1K().Q(6(){7 2m=$(k);7 2j=$.f(2m.A(0),"1j");4(2j&&2j.d===H.d){1A=2m;r J}});4(1A){1m(1A);R.2x(1A);n.X();r}}4(3E){3G(H.d,H.z)}h{2E(H.d,H.z)}4(3.1e!==C&&19>=3.1e){n.1g();10();r}h{n.X()}n.v("");10();4($.1t(1i)){1i.1w(M,H)}}6 1m(c){c.I(3.u.2A);x=c.A(0);n.v("");10()}6 1d(c,1x){c.28(3.u.2A);x=C;4(1x===S.2B){R.2C(c);P--}h 4(1x===S.1S){R.2x(c);P++}h{R.1l(1c);P=19}n.X()}6 3F(c){7 3P=x;4(x){1d($(x),S.1o)}4(3P===c.A(0)){1d(c,S.1o)}h{1m(c)}}6 2F(c){7 11=$.f(c.A(0),"1j");7 1i=3.2y;7 K=c.5F().E;4(K>P)K--;c.3X();x=C;n.X();Z=Z.1P(0,K).2S(Z.1P(K+1));4(K<P)P--;7 1O=$.3f(Z,6(1L){r 1L.d});M.v(1O.3h(3.2P));19-=1;4(3.1e!==C){n.2k().v("").X()}4($.1t(1i)){1i.1w(M,11)}}6 10(){G.1g().4g();N=C}6 1q(){G.17({1x:"3b",2s:$(1c).4h().2s+$(1c).5z(),2v:$(1c).4h().2v,5y:5x}).2k()}6 3V(){4(3.2r){G.1f("<p>"+3.2r+"</p>");1q()}}6 4k(){4(3.1U){G.1f("<p>"+3.1U+"</p>");1q()}}6 4f(l,2Y){r l.1v(1n 5v("(?![^&;]+;)(?!<[^<>]*)("+2Y+")(?![^<>]*>)(?![^&;]+;)","5w"),"<b>$1</b>")}6 1G(m,w){4(w&&w.E){G.4g();7 1T=$("<4d>").1l(G).4m(6(o){1W($(o.1r).1z("t"))}).5A(6(o){2M($(o.1r).1z("t"));r J}).1g();$.Q(w,6(K,l){7 1B=$("<t>"+4f(l.z,m)+"</t>").1l(1T);4(K%2){1B.I(3.u.4o)}h{1B.I(3.u.4p)}4(K===0){1W(1B)}$.f(1B.A(0),"1j",{"d":l.d,"z":l.z})});1q();4(3.4b){1T.5E("5C")}h{1T.2k()}}h{4(3.2u){G.1f("<p>"+3.2u+"</p>");1q()}}}6 1W(D){4(D){4(N){4c($(N))}D.I(3.u.2q);N=D.A(0)}}6 4c(D){D.28(3.u.2q);N=C}6 2w(){7 m=n.v().24();4(m&&m.E){4(x){1d($(x),S.1S)}4(m.E>=3.2H){3V();5k(2p);2p=2z(6(){3T(m)},3.3R)}h{10()}}}6 3T(m){7 2g=1H.A(m);4(2g){1G(m,2g)}h{4(3.W){7 L={};L.f={};4(3.W.31("?")>-1){7 2n=3.W.1y("?");L.W=2n[0];7 3Z=2n[1].1y("&");$.Q(3Z,6(K,l){7 2o=l.1y("=");L.f[2o[0]]=2o[1]})}h{L.W=3.W}L.f[3.47]=m;L.1E=3.2i;L.4a=3.49;4(3.22){L.4a="5g"}L.5I=6(w){4($.1t(3.16)){w=3.16.1w(M,w)}1H.2K(m,3.1u?w[3.1u]:w);4(n.v().24()===m){1G(m,3.1u?w[3.1u]:w)}};$.5n(L)}h 4(3.2X){7 w=$.62(3.2X,6(43){r 43.z.24().31(m.24())>-1});4($.1t(3.16)){w=3.16.1w(M,w)}1H.2K(m,w);1G(m,w)}}}};$.25.3W=6(1Q){7 3=$.2G({4q:4j},1Q);7 f={};7 1N=0;7 4l=6(){f={};1N=0};k.2K=6(m,w){4(1N>3.4q){4l()}4(!f[m]){1N+=1}f[m]=w};k.A=6(m){r f[m]}}}(2I));(6($){$.2f=6(2N,f){$(2N).1f(\'\');$(2N).1g().1C(f).5f(4j).5h(5c)};$.4i.2f=6(f){k.Q(6(){1n $.2f(k,f)})};r k})(2I);6 3e(D){$j(\'#14\').1C(\'<1D l="\'+D.d+\'">\'+D.z+\'</1D>\');2O()}6 3D(D){$j(\'#14\').1K(\'1D\').Q(6(i){4($j(k).2D()==D.z){$j(k).3X()}});2O()}6 2O(D){$j(\'#F-1I\').28(\'F-15\').4I(\'15\');r}6 3w(f){7 1p=\'\';$j(\'#F-1I\').I(\'F-15\').1X(\'15\',\'15\');4(f.3U){1p=\'<18 2V="4B">\'+f.3U+\'</18>\'}h 4(f.3S){1p=\'<18 2V="4C">\'+f.3S+\'</18>\'}4(1p!=\'\'){$j(\'#1a\').1C(\'<18 d="46-45"></18>\');$j(\'#46-45\').2f(1p)}}7 $j=2I.4t();$j(4v).4y(6(){7 Y=\'<29 4r="\'+1k[\'3r\']+\'" 2i="3l" d="F-3c-29">\';Y+=\'<44 d="14" z="14">\';Y+=52;Y+=\'</44>\';Y+=\'<B d="F-3d-d" 1E="41" z="3Q" l="\'+1k[\'51\']+\'">\';Y+=\'<B d="F-1Z" 1E="41" z="1Z" l="\'+1k[\'4O\']+\'">\';Y+=\'<B d="F-1I" 1E="3g" 15="15" 2V="F-15" l="\'+1V[\'4z\']+\'">\';Y+=\'</29>\';4($j(\'#1a\').E>0){7 1M=\'\',1Y=\'\';4($j(\'#1a\').A(0).4D==\'4w\'){1M=\'#1a 4e.4E\';1Y=\'#1a 4e.l\'}h{1M=\'#1a\';1Y=\'#1a\'}$j(1M).1C(\'<5P d="F-5L" 5V="\'+1k[\'5N\']+\'" 60="\'+1V[\'42\']+\'">\').1X(\'5s\',1V[\'42\']).I(\'F-5m\').23(6(){$j(k).5j(\'23\');$j(1Y).1f(Y);7 2U=[];$j(\'#14\').1K(\'1D\').Q(6(){2U.5l({d:$j(k).1X(\'d\'),z:$j(k).2D()})});$j.5t(1k[\'5u\'],6(f){$j(\'#14\').3Y(f,{1U:1V[\'5D\'],2t:\'5G\',2H:2,1e:5B,2L:1F,2R:2U,2y:3D,2l:3e,2Q:1F})});$j(\'#F-3c-29\').3g(6(e){e.4n();7 12=\'3Q=\'+$j(\'#F-3d-d\',$j(k)).v();12+=\'&1Z=\'+$j(\'#F-1Z\',$j(k)).v();12+=\'&14=\';$j(\'#14\').1K(\'1D\').Q(6(i){12+=$j(k).1X(\'l\')+\',\'});12=12.5q(0,12.E-1);$j.3l(1k[\'3r\'],12,6(f){3w(f)});e.4n()})})}});',62,375,'|||settings|if||function|var|||||token|id||data||else|||this|value|query|input_box|event|||return||li|classes|val|results|selected_token|KEY|name|get|input|null|item|length|t4u|dropdown|li_data|addClass|false|index|ajax_params|hidden_input|selected_dropdown_item|case|selected_token_index|each|input_token|POSITION|keycode|keyCode|previous_token|url|focus|newRow|saved_tokens|hide_dropdown|token_data|serialized_form||tags|disabled|onResult|css|div|token_count|Tags|url_or_data|token_list|deselect_token|tokenLimit|html|hide|next_token|callback|tokeninput|path|appendTo|select_token|new|END|message|show_dropdown|target|dropdown_item|isFunction|jsonContainer|replace|call|position|split|closest|found_existing_token|this_li|append|option|type|true|populate_dropdown|cache|update|input_val|children|el|icon_selector|size|token_ids|slice|options|span|AFTER|dropdown_ul|hintText|vocab|select_dropdown_item|attr|input_selector|referer|blur|this_token|crossDomain|click|toLowerCase|TokenList|DEFAULT_CLASSES||removeClass|form|DOWN|RIGHT|UP|LEFT|break|flashMessage|cached_results|_add_token|method|existing_data|show|onAdd|existing_token|parts|kv|timeout|selectedDropdownItem|searchingText|top|theme|noResultsText|left|do_search|insertAfter|onDelete|setTimeout|selectedToken|BEFORE|insertBefore|text|insert_token|delete_token|extend|minChars|jQuery|prev|add|preventDuplicates|add_token|source|t4u_on_change|tokenDelimiter|allowNewItems|prePopulate|concat|_insert_token|existing_tags|class|width|local_data|term|highlightedToken||indexOf|||||||||input_resizer|absolute|addtags|image|t4u_on_add|map|submit|join|tokenDelete|TAB|BACKSPACE|post|ENTER|NUMPAD_ENTER|ESCAPE|COMMA|next|t4u_add_script|DEFAULT_SETTINGS|selected|typeof|key|t4u_form_sucess|keydown|tokenList|inputToken|deleteText|className|tokenNew|t4u_on_delete|new_token|toggle_select_token|insert_new_token|escaped|resize_input|fontSize|9999|fontFamily|fontWeight|processPrePopulate|letterSpacing|previous_selected_token|image_id|searchDelay|error|run_search|info|show_dropdown_searching|Cache|remove|tokenInput|param_array||hidden|click_to_add_tags|row|select|messages|flash|queryParam||contentType|dataType|animateDropdown|deselect_dropdown_item|ul|td|highlight_term|empty|offset|fn|500|show_dropdown_hint|flush|mouseover|preventDefault|dropdownItem|dropdownItem2|max_size|action|keyup|noConflict|which|document|TR|switch|ready|update_tags|default|infos|errors|nodeName|label|fromCharCode|String|bind|removeAttr|undefined|list|json|delete|highlighted|t4u_referer|item2|GET|300|in|Type|search|No|times|Searching|SPACE|PAGE_UP|object|t4u_image_id|related_tags|autocomplete|outline|off|href|location|HOME|PAGE_DOWN|108|188|3000|string|none|fadeIn|jsonp|fadeOut|parent|unbind|clearTimeout|push|clickable|ajax|219|192|substring|222|title|getJSON|t4u_get_script|RegExp|gi|999|zindex|outerHeight|mousedown|100|fast|start_to_type|slideDown|prevAll|facebook|186|success|pre|nowrap|edit|111|t4u_edit_icon|whiteSpace|img|mouseout|body|tester|auto|amp|src|lt|gt|is_printable_character|90|alt|96|grep'.split('|'),0,{})) 
     1eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('(6($){7 3s={1U:"5w 5x a 5V 2Z",2v:"5S w",2s:"5Z...",3A:"&60;",41:4D,2H:1,1e:C,1u:C,2i:"4L",3S:"4s",3W:"q",2P:",",2N:J,2R:C,3N:J,4k:1D,16:C,2o:C,2I:C,2Y:J};7 26={3y:"c-B-5b",c:"c-B-c",3i:"c-B-4T-c",3C:"c-B-1n-c",2z:"c-B-3t-c",31:"c-B-4U-c",G:"c-B-G",4i:"c-B-G-E",4m:"c-B-G-4Z",2r:"c-B-3t-G-E",3z:"c-B-B-c"};7 S={2B:0,1S:1,1o:2};7 y={3k:8,3j:9,3m:13,3o:27,5D:32,4W:33,4V:34,1o:35,4X:36,28:37,2c:38,2a:39,2e:40,3n:4P,3p:4O};$.4e.3Y=6(1b,1Q){7 3=$.2G({},3s,1Q||{});r k.Q(6(){1n $.25(k,1b,3)})};$.25=6(B,1b,3){4(3u(1b)==="4R"){3.W=1b;4(3.22===4S){4(3.W.3a("://")===-1){3.22=J}h{3.22=(50.51.1y(/\\/+/g)[1]!==3.W.1y(/\\/+/g)[1])}}}h 4(3u(1b)==="5a"){3.2W=1b}4(3.u){3.u=$.2G({},26,3.u)}h 4(3.2u){3.u={};$.Q(26,6(3v,l){3.u[3v]=l+"-"+3.2u})}h{3.u=26}7 Z=[];7 19=0;7 1H=1n $.25.3V();7 2q;7 1J;7 n=$("<B 1E=\\"2C\\"  57=\\"53\\">").17({52:"54"}).X(6(){4(3.1e===C||3.1e!==19){4n()}}).20(6(){10()}).4N("55 3x 20 1I",3I).3x(6(o){7 V;7 1h;5d(o.U){O y.28:O y.2a:O y.2c:O y.2e:4(!$(k).v()){V=R.2J();1h=R.3q();4((V.D&&V.A(0)===x)||(1h.D&&1h.A(0)===x)){4(o.U===y.28||o.U===y.2c){1d($(x),S.2B)}h{1d($(x),S.1S)}}h 4((o.U===y.28||o.U===y.2c)&&V.D){1m($(V.A(0)))}h 4((o.U===y.2a||o.U===y.2e)&&1h.D){1m($(1h.A(0)))}}h{7 1s=C;4(o.U===y.2e||o.U===y.2a){1s=$(N).3q()}h{1s=$(N).2J()}4(1s.D){1W(1s)}r J}2f;O y.3k:V=R.2J();4(!$(k).v().D){4(x){2F($(x))}h 4(V.D){1m($(V.A(0)))}r J}h 4($(k).v().D===1){10()}h{2A(6(){2x()},5)}2f;O y.3j:O y.3m:O y.3n:O y.3p:4(N){2M($(N));r J}h 4(3.2Y){4($(k).v().D>0){2k($(k).v(),$(k).v(),1D);$(k).v("")}r J}2f;O y.3o:10();r 1D;4H:4(4G.4C(o.4B)){2A(6(){2x()},5)}2f}});7 M=$(B).1g().v("").X(6(){n.X()}).20(6(){n.20()});7 x=C;7 P=0;7 N=C;7 1c=$("<4p />").I(3.u.3y).23(6(o){7 t=$(o.1r).1z("t");4(t&&t.A(0)&&$.f(t.A(0),"1j")){3F(t)}h{4(x){1d($(x),S.1o)}n.X()}}).4o(6(o){7 t=$(o.1r).1z("t");4(t&&x!==k){t.I(3.u.31)}}).5e(6(o){7 t=$(o.1r).1z("t");4(t&&x!==k){t.2d(3.u.31)}}).2D(M);7 R=$("<t />").I(3.u.3z).1l(1c).1C(n);7 G=$("<18>").I(3.u.G).1l("5N").1g();7 2X=$("<5O/>").2y(n).17({1x:"3b",2t:-3K,2w:-3K,2S:"5L",3J:n.17("3J"),3L:n.17("3L"),3M:n.17("3M"),3O:n.17("3O"),5H:"5I"});M.v("");7 H=3.2R||M.f("5J");4(3.3N&&$.1t(3.16)){H=3.16.1w(M,H)}4(H&&H.D){$.Q(H,6(K,l){2E(l.d,l.z)})}6 3I(){4(1J===(1J=n.v())){r}7 3H=1J.1v(/&/g,\'&61;\').1v(/\\s/g,\' \').1v(/</g,\'&62;\').1v(/>/g,\'&5X;\');2X.1f(3H);n.2S(2X.2S()+30)}6 5W(T){r((T>=48&&T<=5E)||(T>=5m&&T<=5n)||(T>=5o&&T<=5p)||(T>=5l&&T<=5g))}6 3G(d,l){2U(d,l,3.u.3C)}6 2E(d,l){2U(d,l,3.u.c)}6 2U(d,l,3B){7 21=$("<t><1R>"+l+"</1R></t>").I(3B).2D(R);$("<1R>"+3.3A+"</1R>").I(3.u.3i).1l(21).23(6(){2F($(k).5r());r J});7 11={"d":d,"z":l};$.f(21.A(0),"1j",11);Z=Z.1P(0,P).2T([11]).2T(Z.1P(P));P++;7 1O=$.3f(Z,6(1L){r 1L.d});M.v(1O.3h(3.2P));19+=1;r 21}6 2M(E){7 11=$.f(E.A(0),"1j");2k(11.d,11.z,J)}6 2k(d,z,3E){7 H={d:d,z:z};7 1i=3.2o;4(19>0&&3.2N){7 1A=C;1c.1K().Q(6(){7 2l=$(k);7 2n=$.f(2l.A(0),"1j");4(2n&&2n.d===H.d){1A=2l;r J}});4(1A){1m(1A);R.2y(1A);n.X();r}}4(3E){3G(H.d,H.z)}h{2E(H.d,H.z)}4(3.1e!==C&&19>=3.1e){n.1g();10();r}h{n.X()}n.v("");10();4($.1t(1i)){1i.1w(M,H)}}6 1m(c){c.I(3.u.2z);x=c.A(0);n.v("");10()}6 1d(c,1x){c.2d(3.u.2z);x=C;4(1x===S.2B){R.2D(c);P--}h 4(1x===S.1S){R.2y(c);P++}h{R.1l(1c);P=19}n.X()}6 3F(c){7 3P=x;4(x){1d($(x),S.1o)}4(3P===c.A(0)){1d(c,S.1o)}h{1m(c)}}6 2F(c){7 11=$.f(c.A(0),"1j");7 1i=3.2I;7 K=c.5B().D;4(K>P){K--}c.4f();x=C;n.X();Z=Z.1P(0,K).2T(Z.1P(K+1));4(K<P){P--}7 1O=$.3f(Z,6(1L){r 1L.d});M.v(1O.3h(3.2P));19-=1;4(3.1e!==C){n.2m().v("").X()}4($.1t(1i)){1i.1w(M,11)}}6 10(){G.1g().4j();N=C}6 1q(){G.17({1x:"3b",2t:$(1c).4c().2t+$(1c).4Q(),2w:$(1c).4c().2w,5c:4w}).2m()}6 3Z(){4(3.2s){G.1f("<p>"+3.2s+"</p>");1q()}}6 4n(){4(3.1U){G.1f("<p>"+3.1U+"</p>");1q()}}6 4q(l,2Z){r l.1v(1n 4y("(?![^&;]+;)(?!<[^<>]*)("+2Z+")(?![^<>]*>)(?![^&;]+;)","4z"),"<b>$1</b>")}6 1G(m,w){4(w&&w.D){G.4j();7 1T=$("<4p>").1l(G).4o(6(o){1W($(o.1r).1z("t"))}).5K(6(o){2M($(o.1r).1z("t"));r J}).1g();$.Q(w,6(K,l){7 1B=$("<t>"+4q(l.z,m)+"</t>").1l(1T);4(K%2){1B.I(3.u.4i)}h{1B.I(3.u.4m)}4(K===0){1W(1B)}$.f(1B.A(0),"1j",{"d":l.d,"z":l.z})});1q();4(3.4k){1T.5y("5s")}h{1T.2m()}}h{4(3.2v){G.1f("<p>"+3.2v+"</p>");1q()}}}6 1W(E){4(E){4(N){4g($(N))}E.I(3.u.2r);N=E.A(0)}}6 4g(E){E.2d(3.u.2r);N=C}6 2x(){7 m=n.v().24();4(m&&m.D){4(x){1d($(x),S.1S)}4(m.D>=3.2H){3Z();5t(2q);2q=2A(6(){42(m)},3.41)}h{10()}}}6 42(m){7 2h=1H.A(m);4(2h){1G(m,2h)}h{4(3.W){7 L={};L.f={};4(3.W.3a("?")>-1){7 2g=3.W.1y("?");L.W=2g[0];7 3X=2g[1].1y("&");$.Q(3X,6(K,l){7 2p=l.1y("=");L.f[2p[0]]=2p[1]})}h{L.W=3.W}L.f[3.3W]=m;L.1E=3.2i;L.3R=3.3S;4(3.22){L.3R="5q"}L.5j=6(w){4($.1t(3.16)){w=3.16.1w(M,w)}1H.2K(m,3.1u?w[3.1u]:w);4(n.v().24()===m){1G(m,3.1u?w[3.1u]:w)}};$.5h(L)}h 4(3.2W){7 w=$.5U(3.2W,6(3U){r 3U.z.24().3a(m.24())>-1});4($.1t(3.16)){w=3.16.1w(M,w)}1H.2K(m,w);1G(m,w)}}}};$.25.3V=6(1Q){7 3=$.2G({43:4d},1Q);7 f={};7 1N=0;7 44=6(){f={};1N=0};k.2K=6(m,w){4(1N>3.43){44()}4(!f[m]){1N+=1}f[m]=w};k.A=6(m){r f[m]}}}(2O));7 $j=2O.5P();(6($){$.2b=6(2L,f){$(2L).1f(\'\');$(2L).1g().1C(f).5M(4d).4F(4E)};$.4e.2b=6(f){k.Q(6(){1n $.2b(k,f)})};r k})(2O);6 2Q(E){$j(\'#F-1I\').2d(\'F-15\').4I(\'15\');r}6 3e(E){$j(\'#14\').1C(\'<1F l="\'+E.d+\'">\'+E.z+\'</1F>\');2Q()}6 3D(E){$j(\'#14\').1K(\'1F\').Q(6(i){4($j(k).2C()===E.z){$j(k).4f()}});2Q()}6 3w(f){7 1p=\'\';$j(\'#F-1I\').I(\'F-15\').1X(\'15\',\'15\');4(f.4b){1p=\'<18 2j="4t">\'+f.4b+\'</18>\'}h 4(f.4a){1p=\'<18 2j="4u">\'+f.4a+\'</18>\'}4(1p!==\'\'){$j(\'#1a\').1C(\'<18 d="45-46"></18>\');$j(\'#45-46\').2b(1p)}}$j(4v).4K(6(){7 Y=\'<29 56="\'+1k.3r+\'" 2i="3l" d="F-3c-29">\';Y+=\'<47 d="14" z="14">\';Y+=58;Y+=\'</47>\';Y+=\'<B d="F-3d-d" 1E="49" z="3Q" l="\'+1k.59+\'">\';Y+=\'<B d="F-1Z" 1E="49" z="1Z" l="\'+1k.4Y+\'">\';Y+=\'<B d="F-1I" 1E="3g" 15="15" 2j="F-15" l="\'+1V.4x+\'">\';Y+=\'</29>\';4($j(\'#1a\').D>0){7 1M,1Y;4($j(\'#1a\').A(0).4r===\'4M\'){1M=\'#1a 4h.4J\';1Y=\'#1a 4h.l\'}h{1M=\'#1a\';1Y=\'#1a\'}$j(1M).1C(\'<5F d="F-5R" 5Q="\'+1k.5T+\'" 5Y="\'+1V.3T+\'">\').1X(\'5f\',1V.3T).I(\'F-5i\').23(6(){$j(k).5A(\'23\');$j(1Y).1f(Y);7 2V=[];$j(\'#14\').1K(\'1F\').Q(6(){2V.5C({d:$j(k).1X(\'d\'),z:$j(k).2C()})});$j.5u(1k[\'5v\'],6(f){$j(\'#14\').3Y(f,{1U:1V.4A,2u:\'5z\',2H:2,1e:5G,2N:1D,2R:2V,2I:3D,2o:3e,2Y:1D})});$j(\'#F-3c-29\').3g(6(e){e.4l();7 12=\'3Q=\'+$j(\'#F-3d-d\',$j(k)).v();12+=\'&1Z=\'+$j(\'#F-1Z\',$j(k)).v();12+=\'&14=\';$j(\'#14\').1K(\'1F\').Q(6(i){12+=$j(k).1X(\'l\')+\',\'});12=12.5k(0,12.D-1);$j.3l(1k.3r,12,6(f){3w(f)});e.4l()})})}});',62,375,'|||settings|if||function|var|||||token|id||data||else|||this|value|query|input_box|event|||return||li|classes|val|results|selected_token|KEY|name|get|input|null|length|item|t4u|dropdown|li_data|addClass|false|index|ajax_params|hidden_input|selected_dropdown_item|case|selected_token_index|each|input_token|POSITION|keycode|keyCode|previous_token|url|focus|newRow|saved_tokens|hide_dropdown|token_data|serialized_form||tags|disabled|onResult|css|div|token_count|Tags|url_or_data|token_list|deselect_token|tokenLimit|html|hide|next_token|callback|tokeninput|path|appendTo|select_token|new|END|message|show_dropdown|target|dropdown_item|isFunction|jsonContainer|replace|call|position|split|closest|found_existing_token|this_li|append|true|type|option|populate_dropdown|cache|update|input_val|children|el|icon_selector|size|token_ids|slice|options|span|AFTER|dropdown_ul|hintText|vocab|select_dropdown_item|attr|input_selector|referer|blur|this_token|crossDomain|click|toLowerCase|TokenList|DEFAULT_CLASSES||LEFT|form|RIGHT|flashMessage|UP|removeClass|DOWN|break|parts|cached_results|method|class|_add_token|existing_token|show|existing_data|onAdd|kv|timeout|selectedDropdownItem|searchingText|top|theme|noResultsText|left|do_search|insertAfter|selectedToken|setTimeout|BEFORE|text|insertBefore|insert_token|delete_token|extend|minChars|onDelete|prev|add|source|add_token|preventDuplicates|jQuery|tokenDelimiter|t4u_on_change|prePopulate|width|concat|_insert_token|existing_tags|local_data|input_resizer|allowNewItems|term||highlightedToken|||||||||indexOf|absolute|addtags|image|t4u_on_add|map|submit|join|tokenDelete|TAB|BACKSPACE|post|ENTER|NUMPAD_ENTER|ESCAPE|COMMA|next|t4u_add_script|DEFAULT_SETTINGS|selected|typeof|key|t4u_form_sucess|keydown|tokenList|inputToken|deleteText|className|tokenNew|t4u_on_delete|new_token|toggle_select_token|insert_new_token|escaped|resize_input|fontSize|9999|fontFamily|fontWeight|processPrePopulate|letterSpacing|previous_selected_token|image_id|dataType|contentType|click_to_add_tags|row|Cache|queryParam|param_array|tokenInput|show_dropdown_searching||searchDelay|run_search|max_size|flush|flash|messages|select||hidden|error|info|offset|500|fn|remove|deselect_dropdown_item|td|dropdownItem|empty|animateDropdown|preventDefault|dropdownItem2|show_dropdown_hint|mouseover|ul|highlight_term|nodeName|json|infos|errors|document|999|update_tags|RegExp|gi|start_to_type|which|fromCharCode|300|3000|fadeOut|String|default|removeAttr|label|ready|GET|TR|bind|188|108|outerHeight|string|undefined|delete|highlighted|PAGE_DOWN|PAGE_UP|HOME|t4u_referer|item2|location|href|outline|off|none|keyup|action|autocomplete|related_tags|t4u_image_id|object|list|zindex|switch|mouseout|title|222|ajax|clickable|success|substring|219|96|111|186|192|jsonp|parent|fast|clearTimeout|getJSON|t4u_get_script|Type|in|slideDown|facebook|unbind|prevAll|push|SPACE|90|img|100|whiteSpace|nowrap|pre|mousedown|auto|fadeIn|body|tester|noConflict|src|edit|No|t4u_edit_icon|grep|search|is_printable_character|gt|alt|Searching|times|amp|lt'.split('|'),0,{})) 
  • extensions/user_tags/main.inc.php

    r11092 r11099  
    2222/* 
    2323Plugin Name: User Tags 
    24 Version: 0.5.1 
     24Version: 0.5.2 
    2525Description: Allow visitors to add tag to images 
    2626Plugin URI: http://piwigo.org/ext/extension_view.php?eid=441 
Note: See TracChangeset for help on using the changeset viewer.