Changeset 11092


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

Fix incompatibility with simple theme

Location:
extensions/user_tags
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • extensions/user_tags/CHANGELOG

    r11081 r11092  
     1User Tags 0.5.1 - 2011-05-29 
     2================================ 
     3* Fix incompatibility with simple theme 
     4 
    15User Tags 0.5.0 - 2011-05-27 
    26================================ 
  • extensions/user_tags/js/jquery.addtags.js

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

    r11081 r11092  
    2222/* 
    2323Plugin Name: User Tags 
    24 Version: 0.5.0 
     24Version: 0.5.1 
    2525Description: Allow visitors to add tag to images 
    26 Plugin URI: http://phpwebgallery.net/ext/extension_view.php?eid=441 
     26Plugin URI: http://piwigo.org/ext/extension_view.php?eid=441 
    2727Author: nikrou 
    2828Author URI: http://www.nikrou.net/ 
Note: See TracChangeset for help on using the changeset viewer.