diff --git a/src/messenger/js/chat.js b/src/messenger/js/chat.js index f35b0435..112480aa 100644 --- a/src/messenger/js/chat.js +++ b/src/messenger/js/chat.js @@ -149,6 +149,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) + '&token=' + (this._options.token || 0) + '&name=' + encodeURIComponent(newname)}); }, diff --git a/src/messenger/webim/js/chat.js b/src/messenger/webim/js/chat.js index 9c17d200..ae7f1854 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 su="\165p\144\141\164ed";if(this.et>0){var qh=((new Date()).getTime()-this.et)/0x3e8;su=su+"\u002c "+qh+"\u0020\u0073ec\u0073";if(qh>(9+1)){alert(su);} } this.et=(new Date()).getTime();this.zt(su);} else{this.rh();} if(zu){$s.ut(this.pq.bt);if(!this.gt){xs(rt.st+'/\163o\u0075\u006e\144\u0073/\156\145\167_m\145ss\u0061\147e.\u0077a\166');} if(!this.at){window.focus();} } } ,vt:function(k){if(k){sh=k.ctrlKey;k=k.which;} else{k=event.keyCode;sh=event.ctrlKey;} if(this.pq.ct&&((k==(9+4)&&(sh||myRealAgent=='\157\u0070e\u0072a'))||(k==012))){var th=this.pq.ct.value;if(myRealAgent=='op\145r\u0061'){th=th.replace(/[\r\n]+$/,'');} this.iu(th);return false;} return true;} ,hu:function(hq,tu,uh){if(tu&&tu.tagName=='\145\162ro\162'){this.zt(qs.rs(tu,"des\143\162"));} else{this.zt("\u0072e\143\u006f\u006en\u0065\143\u0074\151ng");} } ,hh:function(k){if($("e\156\147i\u006ee\151n\u0066o")){$("\145\156\147ine\u0069\156\u0066o").style.display='\u0069\156l\u0069ne';$("\145\u006e\u0067\151ne\u0069n\146\157").innerHTML=k;} } ,zt:function(k){if(this.ih)clearTimeout(this.ih);this.hh(k);this.ih=setTimeout(this.rh.on(this),07640);} ,rh:function(){$("\u0065\u006egin\u0065i\156\146\u006f").style.display='n\u006fn\145';} } );jh=mn.nn();jh.prototype={qn:function(pq){this.pq=pq;this.kh=0;if(this.pq.lh&&this.pq.oh&&this.pq.ph){this.pq.ph.onmousedown=this.dh.on(this);this.pq.ph.onmouseup=this.eh.on(this);this.pq.ph.onmousemove=this.fh.on(this);} } ,dh:function(e){var or=e||event;if(this.pq.ph.setCapture)this.pq.ph.setCapture();this.gh=this.pq.lh.style.pixelHeight||this.pq.lh.clientHeight;this.ah=or.screenY;this.pq.bh=this.pq.lh.style.pixelHeight+this.pq.oh.clientHeight-this.pq.ch;this.kh=1;} ,eh:function(){if(this.kh){if(this.pq.ph.releaseCapture)this.pq.ph.releaseCapture();this.kh=0;} } ,fh:function(e){var or=e||event;if(this.kh){var vh=this.gh-(or.screenY-this.ah);if(vh>this.pq.bh)vh=this.pq.bh;else if(vh<\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 su="\165p\144\141\164ed";if(this.et>0){var qh=((new Date()).getTime()-this.et)/0x3e8;su=su+"\u002c "+qh+"\u0020\u0073ec\u0073";if(qh>(9+1)){alert(su);} } this.et=(new Date()).getTime();this.zt(su);} else{this.rh();} if(zu){$s.ut(this.pq.bt);if(!this.gt){xs(rt.st+'/\163o\u0075\u006e\144\u0073/\156\145\167_m\145ss\u0061\147e.\u0077a\166');} if(!this.at){window.focus();} } } ,vt:function(k){if(k){sh=k.ctrlKey;k=k.which;} else{k=event.keyCode;sh=event.ctrlKey;} if(this.pq.ct&&((k==(9+4)&&(sh||myRealAgent=='\157\u0070e\u0072a'))||(k==012))){var th=this.pq.ct.value;if(myRealAgent=='op\145r\u0061'){th=th.replace(/[\r\n]+$/,'');} this.iu(th);return false;} return true;} ,hu:function(hq,tu,uh){if(tu&&tu.tagName=='\145\162ro\162'){this.zt(qs.rs(tu,"des\143\162"));} else{this.zt("\u0072e\143\u006f\u006en\u0065\143\u0074\151ng");} } ,hh:function(k){if($("e\156\147i\u006ee\151n\u0066o")){$("\145\156\147ine\u0069\156\u0066o").style.display='\u0069\156l\u0069ne';$("\145\u006e\u0067\151ne\u0069n\146\157").innerHTML=k;} } ,zt:function(k){if(this.ih)clearTimeout(this.ih);this.hh(k);this.ih=setTimeout(this.rh.on(this),07640);} ,rh:function(){$("\u0065\u006egin\u0065i\156\146\u006f").style.display='n\u006fn\145';} } );jh=mn.nn();jh.prototype={qn:function(pq){this.pq=pq;this.kh=0;if(this.pq.lh&&this.pq.oh&&this.pq.ph){this.pq.ph.onmousedown=this.dh.on(this);this.pq.ph.onmouseup=this.eh.on(this);this.pq.ph.onmousemove=this.fh.on(this);} } ,dh:function(e){var or=e||event;if(this.pq.ph.setCapture)this.pq.ph.setCapture();this.gh=this.pq.lh.style.pixelHeight||this.pq.lh.clientHeight;this.ah=or.screenY;this.pq.bh=this.pq.lh.style.pixelHeight+this.pq.oh.clientHeight-this.pq.ch;this.kh=1;} ,eh:function(){if(this.kh){if(this.pq.ph.releaseCapture)this.pq.ph.releaseCapture();this.kh=0;} } ,fh:function(e){var or=e||event;if(this.kh){var vh=this.gh-(or.screenY-this.ah);if(vh>this.pq.bh)vh=this.pq.bh;else if(vh