source: extensions/GrumPluginClasses/js/external/interface/compressed/iselect.js @ 6106

Last change on this file since 6106 was 6106, checked in by grum, 14 years ago

Update plugin with some new functions

  • Property svn:executable set to *
File size: 3.7 KB
Line 
1/**
2 * Interface Elements for jQuery
3 * Selectables
4 *
5 * http://interface.eyecon.ro
6 *
7 * Copyright (c) 2006 Stefan Petre
8 * Dual licensed under the MIT (MIT-LICENSE.txt)
9 * and GPL (GPL-LICENSE.txt) licenses.
10 *
11 *
12 */
13eval(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}('2.5=1k;2.F=c;2.8=1k;2.B=[];2.X=i(e){g 1d=e.1O||e.1N||-1;4(1d==17||1d==16){2.F=k}};2.Z=i(e){2.F=c};2.1n=i(e){3.f.6=2.C.1p(e);3.f.9=2.1R(2.C.1T(3),2.C.1S(3));3.f.7=2.C.1r(3);3.f.6.x-=3.f.9.x;3.f.6.y-=3.f.9.y;2(3).1e(2.5.1c(0));4(3.f.J)2.5.13(3.f.J).z(\'V\',\'1i\');2.5.z({V:\'1i\',1g:\'1h\',1l:\'1h\'});4(3.f.o){2.5.z(\'14\',3.f.o)}2.8=3;2.H=c;2.B=[];3.f.W.Y(i(){3.9={x:3.1L+(3.P&&!2.1f.1w?1v(3.P.1G)||0:0)+(2.8.q||0),y:3.1F+(3.P&&!2.1f.1w?1v(3.P.1H)||0:0)+(2.8.p||0),1o:3.1I,1C:3.1K};4(3.s==k){4(2.F==c){3.s=c;2(3).T(2.8.f.D)}v{2.H=k;2.B[2.B.1b]=2.E(3,\'A\')}}});2.U.11(3,[e]);2(G).m(\'1z\',2.U).m(\'1A\',2.1a);n c};2.U=i(e){4(!2.8)n;2.1q.11(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f.K)3.f.K(2.15(2.E(3,\'A\')))}v{4(3.f.O)3.f.O(2.15(2.E(3,\'A\')))}2.B=[]};2.15=i(s){g h=\'\';g o=[];4(a=2(\'#\'+s)){a.1c(0).f.W.Y(i(){4(3.s==k){4(h.1b>0){h+=\'&\'}h+=s+\'[]=\'+2.E(3,\'A\');o[o.1b]=2.E(3,\'A\')}})}n{1M:h,o:o}};2.1Q.1P=i(o){4(!2.5){2(\'12\',G).1e(\'<1j A="5"></1j>\').m(\'18\',2.X).m(\'19\',2.Z);2.5=2(\'#5\');2.5.z({1t:\'1E\',V:\'1B\'});4(1V.1J){2(\'12\',G).m(\'18\',2.X).m(\'19\',2.Z)}v{2(G).m(\'18\',2.X).m(\'19\',2.Z)}}4(!o){o={}}n 3.Y(i(){4(3.1x)n;3.1x=k;3.f={a:o.1s,o:o.14?21(o.14):c,D:o.1m?o.1m:c,J:o.1u?o.1u:c,K:o.K?o.K:c,O:o.O?o.O:c};3.f.W=2(\'.\'+o.1s);2(3).m(\'1Z\',2.1n).z(\'1t\',\'1Y\')})};',62,126,'||jQuery|this|if|selectHelper|pointer|scr|selectdrug|pos|||false|diff|||var||function|Math|true||bind|return||scrollTop|scrollLeft||||min|else||||css|id|selectCurrent|iUtil|sc|attr|selectKeyHelper|document|selectedone|sx|hc|onselect|sh|sy|sw|onselectstop|currentStyle|abs|px|iIndex|removeClass|selectcheck|display|el|selectKeyDown|each|selectKeyUp||apply|body|addClass|opacity|Selectserialize|||keydown|keyup|selectstop|length|get|pressedKey|append|browser|width|0px|block|div|null|height|selectedclass|selectstart|wb|getPointer|selectcheckApply|getScroll|accept|position|helperclass|parseInt|opera|isSelectable|selectstopApply|mousemove|mouseup|none|hb|unbind|absolute|offsetTop|borderLeftWidth|borderTopWidth|offsetWidth|event|offsetHeight|offsetLeft|hash|keyCode|charCode|Selectable|fn|extend|getSize|getPosition|indexOf|window|top|left|relative|mousedown||parseFloat'.split('|'),0,{}))
Note: See TracBrowser for help on using the repository browser.