mirror of
https://github.com/Mibew/i18n.git
synced 2025-04-04 19:27:07 +03:00
git-svn-id: https://webim.svn.sourceforge.net/svnroot/webim/trunk@61 c66351dc-e62f-0410-b875-e3a5c0b9693f
1 line
8.3 KiB
JavaScript
1 line
8.3 KiB
JavaScript
tq.oh=mn.nn();mn.sn(tq.oh,tq.oq,{qn:function(dq){this.pq(dq);this.dq.onComplete=this.ht.pn(this);this.dq.hr=this.ph.pn(this);this.frequency=(this.dq.frequency||2);this.it={} ;this.pt();} ,ph:function(dh,eh){if(this.dq.xt)this.dq.xt(eh.name+"\040\157\u0063\143\165\u0072\u0065d\072\u0020"+eh.kt);this.bt();this.ct=setTimeout(this.pt.pn(this),this.frequency*(855+145));} ,bt:function(){if(this.it.dq)this.it.dq.onComplete=undefined;clearTimeout(this.ct);} ,pt:function(){if(this.dq.fh)this.dq.gq=(this.dq.fh)();this.it=new tq.vq(this.dq.url,this.dq);} ,ht:function(_t){if(_t!=null&&_t.status==0310){var jq=_t.responseXML;(this.dq.wt||tq.lq)(jq);} else{if(this.dq.xt)this.dq.xt(tq.kq(iq));} this.ct=setTimeout(this.pt.pn(this),this.frequency*01750);} } );var gh={ah:function(ps){var cs=ps.insertCell(-1);cs.style.backgroundImage='\u0075\u0072l\050'+_s+'\u002fim\141g\u0065s\057\164ab\u006ce\144\151\u0076\063\u002e\147\u0069\146)';cs.innerHTML='\u003c\u0069\u006d\147\u0020\u0073\162\u0063\u003d"'+_s+'/ima\147\u0065s/free.\u0067\u0069f" \167\u0069\u0064\164\150="\063"\040\u0068\u0065i\147h\164="1" \u0062\u006frd\145r="\060"\u0020\141\154\164=""\u003e';} ,bh:function(os,ch){os.deleteRow(ch+2);os.deleteRow(ch+1);os.deleteRow(ch);} ,vh:function(os,ch){var wh=os.insertRow(ch);var cs=wh.insertCell(-1);cs.colSpan=(11+2);cs.height=2;wh=os.insertRow(ch);cs=wh.insertCell(-1);cs.colSpan=015;cs.style.backgroundColor='#\105\061\1051E\u0031';cs.innerHTML='\u003c\u0069m\147\u0020s\u0072c\u003d"'+_s+'\u002fim\u0061g\u0065\163\057f\162e\u0065\056\147\151\146"\u0020\u0077\u0069\u0064th="\u0031" \150eigh\u0074\075"\u0031"\040\u0062or\u0064\u0065r\075"\060" a\u006c\164="">';wh=os.insertRow(ch);cs=wh.insertCell(-1);cs.colSpan=015;cs.height=2;} ,xh:function(link,title,yh,zh,width,height){return'<a \u0068\u0072e\146\u003d"'+link+'"\040\164ar\147\145\u0074="_b\154\141\u006ek"\u0020t\u0069\u0074\154e\u003d"'+title+'"\040\157\u006ec\154i\u0063k="\164\150is.\u006e\u0065\u0077W\u0069ndo\167 =\040\167in\u0064ow.\u006f\u0070\145\u006e(\''+link+'\'\054 \''+yh+'\'\u002c \'too\154\142\u0061\162\075\u0030,scro\154\u006c\142\141rs\u003d0\u002c\154\u006f\143\141t\u0069\u006f\156\u003d0,statu\u0073\075\u0031\054\u006d\u0065n\u0075b\141r=0\u002c\u0077\151dt\u0068\075'+width+'\u002c\150e\151\u0067h\164='+height+'\u002c\u0072\u0065s\151\172a\u0062l\u0065\075\061\'\051;t\150\u0069\u0073.\156ew\127\u0069n\144\157\u0077.f\157\143\165s\u0028\u0029\073th\151\163.\156\145w\u0057\u0069\156d\u006fw.o\160\u0065ner\075w\u0069\u006ed\157w\073re\164\165\u0072n f\141\154\u0073\145\073">'+zh+'<\u002f\141\u003e';} ,$h:function(content){return'<\u0074\u0061\u0062\u006ce w\151\u0064\164h\u003d"1\u0030\u0030%"\040\u0063\145\u006c\154\163\u0070a\u0063i\156g\u003d"\060" \143e\154l\160ad\144\151\156\147="\u0030" \142or\u0064\145\u0072="\u0030"><tr>'+content+'\074/\u0074\u0072\076<\u002ft\u0061b\154e\u003e';} ,_h:function(mi,ni,id,qi,ri,si,kt){var ti=2;var link=ni+"?\164\u0068re\u0061\144\075"+id;var ui=(si=="\146\u0075ll")?"\074i \u0073\164\171\u006c\u0065\075'c\157\u006c\157r:\043a\u0061\u0061a\u0061a\073'\u003e"+mi+"<\u002f\151\u003e":((si=="\u006f\u0074h\145\162")?"<\151\u003e"+mi+"</\u0069\u003e":mi);var hi='<td\040\u0063las\u0073="t\u0061\u0062l\145"\u0020\u0073\u0074y\u006c\145="\160a\144\144i\156\u0067-\154\u0065\u0066\u0074\u003a\060\u0070\170\u003b\u0020\u0070\u0061\144\u0064\151\u006e\u0067-\162\u0069gh\u0074\u003a\u0030px;"\076';hi+=gh.xh(ri?link:link+"&\166\u0069e\167\157\156\154\u0079\u003d\164\162\u0075\145",localized[ri?0:1],"I\155\u0043\u0065\156t\145r"+id,ui,01130,0x1a4);hi+='<\057t\u0064\u003e<\u0074\144>\u003c\u0069\155\u0067\040\u0073\162\u0063="'+_s+'\u002f\u0069ma\147\145s\u002ffr\u0065\145.gif"\u0020w\151d\u0074\150\u003d"\u0035"\040h\u0065ig\150\164="\u0031"\u0020\142\157\162d\145\u0072\u003d"\060"\040a\u006ct\075""\u003e\074\057t\u0064>';if(ri){hi+='\u003ct\u0064 \167\u0069\u0064\164\u0068="3\060"\040\u0061\154\u0069\u0067\u006e\u003d"\143en\164er">';hi+=gh.xh(link,localized[0],"\u0049\u006dC\145n\u0074e\u0072"+id,'<\u0069m\147 \u0073\162\143="'+_s+'\057i\u006dag\145s\u002f\u0074b\154ic\u006c\163p\u0065ak\u002e\147\151\146" w\u0069d\u0074h\u003d"\0615" h\145\151\147\150t\u003d"\u0031\u0035"\040\u0062\u006f\u0072d\u0065r="\u0030" \141l\u0074="'+localized[0]+'"\076',(516+84),(287+133));hi+='\074\u002f\u0074d>';ti++;} return gh.$h(hi);} } ;tq.ii=mn.nn();mn.sn(tq.ii,tq.oq,{qn:function(dq){this.pq(dq);this.dq.fh=this.fh.pn(this);this.dq.xt=this.xt.pn(this);this.dq.wt=this.wt.pn(this);this.dq.ji=0;this.ki=0;this.t=this.dq.li;this.oi=new tq.oh(this.dq);} ,fh:function(){return"\143\157m\u0070any\075"+this.dq.company+"\046\u0073\151\u006e\u0063e\075"+this.dq.ji;} ,au:function(zt){this.dq.status.innerHTML=zt;} ,xt:function(s){this.au(s);} ,pi:function(du){var id,di,ei,qi=false,ri=false,si=null;for(var i=0;i<du.attributes.length;i++){var fi=du.attributes[i];if(fi.nodeName=="\u0069\144")id=fi.nodeValue;else if(fi.nodeName=="\u0073t\141t\u0065\u0069d")di=fi.nodeValue;else if(fi.nodeName=="\u0073tat\145")ei=fi.nodeValue;else if(fi.nodeName=="can\u006f\160en")ri=true;} function gi(os,wh,id,ai){var cs=js.ds(id,wh,os);if(cs)cs.innerHTML=ai;} var wh=js.ks("\164\u0068r"+id,this.t);if(di=="c\u006co\163\145\u0064"){if(wh){gh.bh(this.t,wh.rowIndex+1);this.t.deleteRow(wh.rowIndex);} return;} var bi=ms.ns(du,"n\u0061m\u0065");var ci=ms.ns(du,"\141\144\144\162");var vi=ms.ns(du,"tim\145");var wi=ms.ns(du,"a\147ent");var xi=ms.ns(du,"\u006d\157\u0064if\u0069\u0065\u0064");var kt=ms.ns(du,"\155\145\u0073\u0073a\u0067e");var yi="";var zi=js.ks(di,this.t);var $i=js.ks(di+"e\u006e\u0064",this.t);if(wh!=null&&(wh.rowIndex<=zi.rowIndex||wh.rowIndex>=$i.rowIndex)){gh.bh(this.t,wh.rowIndex+1);this.t.deleteRow(wh.rowIndex);wh=null;} if(wh==null){wh=this.t.insertRow(zi.rowIndex+1);gh.vh(this.t,zi.rowIndex+2);wh.id="th\u0072"+id;js.insertCell(wh,"\156a\u006d\u0065","t\u0061b\u006ce",null,036,gh._h(bi,this.dq.agentservl,id,qi,ri,si,kt));gh.ah(wh);js.insertCell(wh,"c\u006f\156\164\151d","\u0074\u0061bl\145","\u0063e\u006e\u0074\u0065\162",null,ci);gh.ah(wh);js.insertCell(wh,"\163t\141\u0074\145","\164a\u0062\154\u0065","cent\145\162",null,ei);gh.ah(wh);js.insertCell(wh,"\157\160","t\u0061\142l\u0065","\u0063e\u006et\u0065\u0072",null,wi);gh.ah(wh);js.insertCell(wh,"\164\u0069m\u0065","\u0074\141ble","\143\u0065\u006ete\162",null,this._i(vi));gh.ah(wh);js.insertCell(wh,"\167\141\151t","\164abl\u0065","cen\164e\u0072",null,(di!='\143h\141t'?this._i(xi):'\u002d'));gh.ah(wh);js.insertCell(wh,"e\u0074\u0063","\u0074ab\154\u0065","\143\145\u006et\145\162",null,yi);if(di=='\u0077a\u0069\u0074'||di=='prio')return true;} else{gi(this.t,wh,"n\u0061me",gh._h(bi,this.dq.agentservl,id,qi,ri,si,kt));gi(this.t,wh,"c\u006fnt\151d",ci);gi(this.t,wh,"st\141te",ei);gi(this.t,wh,"o\u0070",wi);gi(this.t,wh,"ti\u006de",this._i(vi));gi(this.t,wh,"wai\u0074",(di!='c\150at'?this._i(xi):'\055'));gi(this.t,wh,"\145t\143",yi);} return false;} ,mj:function(){function nj(t,id,qj){var zi=t.rows[id];var $i=t.rows[id+"\u0065\u006e\u0064"];if(zi==null||$i==null)return;var rj=$i.cells["\163\164\u0061\u0074\u0075\163"];if(rj==null)return;rj.innerHTML=(zi.rowIndex+1==$i.rowIndex)?qj:"";rj.height=(zi.rowIndex+1==$i.rowIndex)?(26+4):012;} nj(this.t,"\u0077\141\151\u0074",this.dq.noclients);nj(this.t,"\160\162io",this.dq.noclients);nj(this.t,"c\u0068\141\u0074",this.dq.noclients);} ,_i:function(sj){var tj=Math.floor(((new Date()).getTime()-sj-this.ki)/0x3e8);var uj=Math.floor(tj/0x3c);var hj="";tj=tj%074;if(tj<012)tj="0"+tj;if(uj>=(55+5)){var ij=Math.floor(uj/(39+21));uj=uj%074;if(uj<012)uj="\u0030"+uj;hj=ij+"\072";} return hj+uj+"\u003a"+tj;} ,wt:function(jj){var kj=jj.documentElement;var lj=false;if(kj.tagName=='\164\150reads'){var oj=ms.is(kj,"\164i\155\u0065");var pj=ms.is(kj,"r\u0065\166\u0069\163\u0069\157\u006e");if(oj)this.ki=(new Date()).getTime()-oj;if(pj)this.dq.ji=pj;for(var i=0;i<kj.childNodes.length;i++){var du=kj.childNodes[i];if(du.tagName=='threa\u0064')if(this.pi(du))lj=true;} this.mj();this.au("U\160 \164o\040\u0064\u0061\164\145");if(lj)window.focus();} else if(kj.tagName=='\u0065\u0072\162or'){this.au("\145\162\u0072o\162\u003a\u0020"+ms.ns(kj,"\u0064\u0065\u0073cr"));} else{this.au("\u0077r\157\156\147\040\u0072\u0065\u0073p\157n\u0073\145");} } } );var _s="";ir.jr(window,'on\154o\141d',function(){_s=updaterOptions.wroot;new tq.ii(({li:$("\u0074\u0068\u0072\u0065\141\u0064\154\151s\u0074"),status:$("\u0063\157\u006e\156s\u0074\141t\165\163")} ).hn(updaterOptions||{} ));} ); |