diff --git a/src/messenger/js/chat.js b/src/messenger/js/chat.js index 95c763f7..c25d4d5d 100644 --- a/src/messenger/js/chat.js +++ b/src/messenger/js/chat.js @@ -354,7 +354,9 @@ Behaviour.register({ 'select#predefined' : function(el) { el.onchange = function() { var message = $('msgwnd'); - message.value = this.options[this.selectedIndex].innerText || this.options[this.selectedIndex].innerHTML; + if(this.selectedIndex!=0) { + message.value = this.options[this.selectedIndex].innerText || this.options[this.selectedIndex].innerHTML; + } this.selectedIndex = 0; message.focus(); }; diff --git a/src/messenger/webim/js/chat.js b/src/messenger/webim/js/chat.js index f16f11cd..157ab6d3 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 ru="\165p\144\141\164ed";if(this.et>0){var nh=((new Date()).getTime()-this.et)/0x3e8;ru=ru+"\u002c "+nh+"\u0020\u0073ec\u0073";if(nh>(9+1)){alert(ru);} } this.et=(new Date()).getTime();this.yt(ru);} else{this.qh();} if(yu){$s.ut(this.pq.gt);if(!this.ct){xs(rt.st+'/\163o\u0075\u006e\144\u0073/\156\145\167_m\145ss\u0061\147e.\u0077a\166');window.focus();} } } ,bt:function(k){if(k){rh=k.ctrlKey;k=k.which;} else{k=event.keyCode;rh=event.ctrlKey;} if(this.pq.at&&((k==(9+4)&&(rh||myRealAgent=='\157\u0070e\u0072a'))||(k==012))){var sh=this.pq.at.value;if(myRealAgent=='op\145r\u0061'){sh=sh.replace(/[\r\n]+$/,'');} this.hu(sh);return false;} return true;} ,uu:function(hq,su,th){if(su&&su.tagName=='\145\162ro\162'){this.yt(qs.rs(su,"des\143\162"));} else{this.yt("\u0072e\143\u006f\u006en\u0065\143\u0074\151ng");} } ,uh: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;} } ,yt:function(k){if(this.hh)clearTimeout(this.hh);this.uh(k);this.hh=setTimeout(this.qh.on(this),07640);} ,qh:function(){$("\u0065\u006egin\u0065i\156\146\u006f").style.display='n\u006fn\145';} } );ih=mn.nn();ih.prototype={qn:function(pq){this.pq=pq;this.jh=0;if(this.pq.kh&&this.pq.lh&&this.pq.oh){this.pq.oh.onmousedown=this.ph.on(this);this.pq.oh.onmouseup=this.dh.on(this);this.pq.oh.onmousemove=this.eh.on(this);} } ,ph:function(e){var or=e||event;if(this.pq.oh.setCapture)this.pq.oh.setCapture();this.fh=this.pq.kh.style.pixelHeight||this.pq.kh.clientHeight;this.gh=or.screenY;this.pq.ah=this.pq.kh.style.pixelHeight+this.pq.lh.clientHeight-this.pq.bh;this.jh=1;} ,dh:function(){if(this.jh){if(this.pq.oh.releaseCapture)this.pq.oh.releaseCapture();this.jh=0;} } ,eh:function(e){var or=e||event;if(this.jh){var ch=this.fh-(or.screenY-this.gh);if(ch>this.pq.ah)ch=this.pq.ah;else if(ch<\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 ru="\165p\144\141\164ed";if(this.et>0){var nh=((new Date()).getTime()-this.et)/0x3e8;ru=ru+"\u002c "+nh+"\u0020\u0073ec\u0073";if(nh>(9+1)){alert(ru);} } this.et=(new Date()).getTime();this.yt(ru);} else{this.qh();} if(yu){$s.ut(this.pq.gt);if(!this.ct){xs(rt.st+'/\163o\u0075\u006e\144\u0073/\156\145\167_m\145ss\u0061\147e.\u0077a\166');window.focus();} } } ,bt:function(k){if(k){rh=k.ctrlKey;k=k.which;} else{k=event.keyCode;rh=event.ctrlKey;} if(this.pq.at&&((k==(9+4)&&(rh||myRealAgent=='\157\u0070e\u0072a'))||(k==012))){var sh=this.pq.at.value;if(myRealAgent=='op\145r\u0061'){sh=sh.replace(/[\r\n]+$/,'');} this.hu(sh);return false;} return true;} ,uu:function(hq,su,th){if(su&&su.tagName=='\145\162ro\162'){this.yt(qs.rs(su,"des\143\162"));} else{this.yt("\u0072e\143\u006f\u006en\u0065\143\u0074\151ng");} } ,uh: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;} } ,yt:function(k){if(this.hh)clearTimeout(this.hh);this.uh(k);this.hh=setTimeout(this.qh.on(this),07640);} ,qh:function(){$("\u0065\u006egin\u0065i\156\146\u006f").style.display='n\u006fn\145';} } );ih=mn.nn();ih.prototype={qn:function(pq){this.pq=pq;this.jh=0;if(this.pq.kh&&this.pq.lh&&this.pq.oh){this.pq.oh.onmousedown=this.ph.on(this);this.pq.oh.onmouseup=this.dh.on(this);this.pq.oh.onmousemove=this.eh.on(this);} } ,ph:function(e){var or=e||event;if(this.pq.oh.setCapture)this.pq.oh.setCapture();this.fh=this.pq.kh.style.pixelHeight||this.pq.kh.clientHeight;this.gh=or.screenY;this.pq.ah=this.pq.kh.style.pixelHeight+this.pq.lh.clientHeight-this.pq.bh;this.jh=1;} ,dh:function(){if(this.jh){if(this.pq.oh.releaseCapture)this.pq.oh.releaseCapture();this.jh=0;} } ,eh:function(e){var or=e||event;if(this.jh){var ch=this.fh-(or.screenY-this.gh);if(ch>this.pq.ah)ch=this.pq.ah;else if(ch