diff --git a/src/messenger/js/chat.js b/src/messenger/js/chat.js index ee8882b7..6735784a 100644 --- a/src/messenger/js/chat.js +++ b/src/messenger/js/chat.js @@ -85,7 +85,7 @@ Class.inherit( Ajax.ChatThreadUpdater, Ajax.Base, { }, updateOptions: function(act) { - this._options.parameters = 'act='+act+'&thread=' + (this._options.threadid || -1) + + this._options.parameters = 'act='+act+'&thread=' + (this._options.threadid || 0) + '&token=' + (this._options.token || 0)+ '&lastid=' + (this._options.lastid || 0); if( this._options.user ) @@ -151,7 +151,7 @@ Class.inherit( Ajax.ChatThreadUpdater, Ajax.Base, { changeName: function(newname) { this.skipNextsound = true; - new Ajax.Request(this._options.servl, {parameters:'act=rename&thread=' + (this._options.threadid || -1) + + new Ajax.Request(this._options.servl, {parameters:'act=rename&thread=' + (this._options.threadid || 0) + '&token=' + (this._options.token || 0) + '&name=' + encodeURIComponent(newname)}); }, @@ -165,7 +165,7 @@ Class.inherit( Ajax.ChatThreadUpdater, Ajax.Base, { }, closeThread: function() { - var _params = 'act=close&thread=' + (this._options.threadid || -1) + '&token=' + (this._options.token || 0); + var _params = 'act=close&thread=' + (this._options.threadid || 0) + '&token=' + (this._options.token || 0); if( this._options.user ) _params += "&user=true"; new Ajax.Request(this._options.servl, {parameters:_params, onComplete: this.onThreadClosed.bind(this)}); diff --git a/src/messenger/webim/js/chat.js b/src/messenger/webim/js/chat.js index 4e6388eb..3466182f 100644 --- a/src/messenger/webim/js/chat.js +++ b/src/messenger/webim/js/chat.js @@ -1 +1 @@ -var $s={_s:function(mt){if(mt.contentDocument){return mt.contentDocument;} else if(mt.contentWindow){return mt.contentWindow.document;} else if(mt.document){return mt.document;} else{return null;} } ,nt:function(mt){var qt=this._s(mt);qt.open();qt.write("<\150\164m\154><\150e\u0061\u0064\076");qt.write("");qt.write("<\057\150\145a\144>\u003c\u0062o\144y\040b\147c\u006fl\u006f\162='#\106F\u0046\106\106F'\040\u0074\145xt='\043\u0030\u0030\0600\060\u0030'\u0020l\u0069\156\u006b='\043\u0043\062\u0038\u0034\0600'\u0020v\154\151\u006e\u006b='#\u0043\u0032\u00384\u00300'\040\141l\151nk='#C28\06400'\040\155a\162gin\u0077\u0069dt\u0068\u003d'0'\u0020ma\162gi\156\150e\151\147\150t\u003d'0' \154ef\164m\141\162g\151n\075'\u0030' ri\u0067\u0068t\u006dargi\156='\u0030'\040t\u006f\160m\u0061rg\151\u006e='0'\u0020bo\164\164\157mmarg\u0069\156='\u0030'>");qt.write("\074ta\u0062\154e \u0077\151\144\u0074\u0068\075'1\u0030\u0030\u0025'\040\u0063\145\u006clspa\143\151ng\u003d'0'\040cel\u006cp\141dd\u0069ng\u003d'\u0030'\u0020\142\157r\u0064er='0'\076\074\164\u0072>\074td \166\u0061li\147n\075't\157p'\u0020\u0063l\141ss='\155\u0065s\u0073\141\u0067\u0065'\040\151d\075'cont\145nt'\076<\057\164\144\076<\u002ft\u0072\076=0){var tu="\165\u0070da\u0074ed";if(this.et>0){var sh=((new Date()).getTime()-this.et)/01750;tu=tu+",\u0020"+sh+"\u0020\u0073\145\u0063s";if(sh>012){alert(tu);} } this.et=(new Date()).getTime();this.$t(tu);} else{this.th();} if($u){$s.ut(this.pq.vt);if(!this.gt){xs(rt.st+'\057s\157un\u0064\163\057\u006ee\167_m\145\u0073s\u0061g\u0065.wa\u0076');} if(!this.at){window.focus();} } } ,wt:function(k){if(k){uh=k.ctrlKey;k=k.which;} else{k=event.keyCode;uh=event.ctrlKey;} if(this.pq.ct&&((k==(10+3)&&(uh||myRealAgent=='o\160er\141'))||(k==(6+4)))){var hh=this.pq.ct.value;if(myRealAgent=='op\145\162\u0061'){hh=hh.replace(/[\r\n]+$/,'');} this.ju(hh);return false;} return true;} ,iu:function(hq,uu,ih){if(uu&&uu.tagName=='e\162\u0072\u006fr'){this.$t(qs.rs(uu,"\u0064e\u0073\143r"));} else{this.$t("\162\145\143o\u006en\145c\u0074in\147");} } ,jh:function(k){if($("e\156gin\u0065\151\u006efo")){$("\u0065ng\u0069ne\u0069n\u0066\u006f").style.display='inl\u0069n\145';$("\u0065\u006e\u0067\151ne\u0069n\146\157").innerHTML=k;} } ,$t:function(k){if(this.kh)clearTimeout(this.kh);this.jh(k);this.kh=setTimeout(this.th.on(this),07640);} ,th:function(){$("\145\u006eg\151\u006e\u0065\u0069nfo").style.display='no\156\u0065';} } );lh=mn.nn();lh.prototype={qn:function(pq){this.pq=pq;this.oh=0;if(this.pq.ph&&this.pq.dh&&this.pq.eh){this.pq.eh.onmousedown=this.fh.on(this);this.pq.eh.onmouseup=this.gh.on(this);this.pq.eh.onmousemove=this.ah.on(this);} } ,fh:function(e){var or=e||event;if(this.pq.eh.setCapture)this.pq.eh.setCapture();this.bh=this.pq.ph.style.pixelHeight||this.pq.ph.clientHeight;this.ch=or.screenY;this.pq.vh=this.pq.ph.style.pixelHeight+this.pq.dh.clientHeight-this.pq.wh;this.oh=1;} ,gh:function(){if(this.oh){if(this.pq.eh.releaseCapture)this.pq.eh.releaseCapture();this.oh=0;} } ,ah:function(e){var or=e||event;if(this.oh){var xh=this.bh-(or.screenY-this.ch);if(xh>this.pq.vh)xh=this.pq.vh;else if(xh<\150e\u0061\u0064\076");qt.write("");qt.write("<\057\150\145a\144>\u003c\u0062o\144y\040b\147c\u006fl\u006f\162='#\106F\u0046\106\106F'\040\u0074\145xt='\043\u0030\u0030\0600\060\u0030'\u0020l\u0069\156\u006b='\043\u0043\062\u0038\u0034\0600'\u0020v\154\151\u006e\u006b='#\u0043\u0032\u00384\u00300'\040\141l\151nk='#C28\06400'\040\155a\162gin\u0077\u0069dt\u0068\u003d'0'\u0020ma\162gi\156\150e\151\147\150t\u003d'0' \154ef\164m\141\162g\151n\075'\u0030' ri\u0067\u0068t\u006dargi\156='\u0030'\040t\u006f\160m\u0061rg\151\u006e='0'\u0020bo\164\164\157mmarg\u0069\156='\u0030'>");qt.write("\074ta\u0062\154e \u0077\151\144\u0074\u0068\075'1\u0030\u0030\u0025'\040\u0063\145\u006clspa\143\151ng\u003d'0'\040cel\u006cp\141dd\u0069ng\u003d'\u0030'\u0020\142\157r\u0064er='0'\076\074\164\u0072>\074td \166\u0061li\147n\075't\157p'\u0020\u0063l\141ss='\155\u0065s\u0073\141\u0067\u0065'\040\151d\075'cont\145nt'\076<\057\164\144\076<\u002ft\u0072\076=0){var tu="\165\u0070da\u0074ed";if(this.et>0){var sh=((new Date()).getTime()-this.et)/01750;tu=tu+",\u0020"+sh+"\u0020\u0073\145\u0063s";if(sh>012){alert(tu);} } this.et=(new Date()).getTime();this.$t(tu);} else{this.th();} if($u){$s.ut(this.pq.vt);if(!this.gt){xs(rt.st+'\057s\157un\u0064\163\057\u006ee\167_m\145\u0073s\u0061g\u0065.wa\u0076');} if(!this.at){window.focus();} } } ,wt:function(k){if(k){uh=k.ctrlKey;k=k.which;} else{k=event.keyCode;uh=event.ctrlKey;} if(this.pq.ct&&((k==(10+3)&&(uh||myRealAgent=='o\160er\141'))||(k==(6+4)))){var hh=this.pq.ct.value;if(myRealAgent=='op\145\162\u0061'){hh=hh.replace(/[\r\n]+$/,'');} this.ju(hh);return false;} return true;} ,iu:function(hq,uu,ih){if(uu&&uu.tagName=='e\162\u0072\u006fr'){this.$t(qs.rs(uu,"\u0064e\u0073\143r"));} else{this.$t("\162\145\143o\u006en\145c\u0074in\147");} } ,jh:function(k){if($("e\156gin\u0065\151\u006efo")){$("\u0065ng\u0069ne\u0069n\u0066\u006f").style.display='inl\u0069n\145';$("\u0065\u006e\u0067\151ne\u0069n\146\157").innerHTML=k;} } ,$t:function(k){if(this.kh)clearTimeout(this.kh);this.jh(k);this.kh=setTimeout(this.th.on(this),07640);} ,th:function(){$("\145\u006eg\151\u006e\u0065\u0069nfo").style.display='no\156\u0065';} } );lh=mn.nn();lh.prototype={qn:function(pq){this.pq=pq;this.oh=0;if(this.pq.ph&&this.pq.dh&&this.pq.eh){this.pq.eh.onmousedown=this.fh.on(this);this.pq.eh.onmouseup=this.gh.on(this);this.pq.eh.onmousemove=this.ah.on(this);} } ,fh:function(e){var or=e||event;if(this.pq.eh.setCapture)this.pq.eh.setCapture();this.bh=this.pq.ph.style.pixelHeight||this.pq.ph.clientHeight;this.ch=or.screenY;this.pq.vh=this.pq.ph.style.pixelHeight+this.pq.dh.clientHeight-this.pq.wh;this.oh=1;} ,gh:function(){if(this.oh){if(this.pq.eh.releaseCapture)this.pq.eh.releaseCapture();this.oh=0;} } ,ah:function(e){var or=e||event;if(this.oh){var xh=this.bh-(or.screenY-this.ch);if(xh>this.pq.vh)xh=this.pq.vh;else if(xh