[Phpfreechat-svn] SF.net SVN: phpfreechat: [972] trunk/data/public/js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-02-20 08:23:37
|
Revision: 972 http://svn.sourceforge.net/phpfreechat/?rev=972&view=rev Author: kerphi Date: 2007-02-20 00:23:37 -0800 (Tue, 20 Feb 2007) Log Message: ----------- [en] Bug fix: the focus was lost in the new prompt dialog box [0h40] [fr] Bug fix : le focus ?\195?\169tait perdu dans la boite de dialogue demandant le pseudo [0h40] Modified Paths: -------------- trunk/data/public/js/pfcclient.js trunk/data/public/js/pfcprompt.js Modified: trunk/data/public/js/pfcclient.js =================================================================== --- trunk/data/public/js/pfcclient.js 2007-02-19 16:33:16 UTC (rev 971) +++ trunk/data/public/js/pfcclient.js 2007-02-20 08:23:37 UTC (rev 972) @@ -80,9 +80,6 @@ Event.observe(this.el_words, 'focus', this.callbackWords_OnFocus.bindAsEventListener(this), false); Event.observe(this.el_handle, 'keydown', this.callbackHandle_OnKeydown.bindAsEventListener(this), false); Event.observe(this.el_handle, 'change', this.callbackHandle_OnChange.bindAsEventListener(this), false); - Event.observe(this.el_container, 'mousemove', this.callbackContainer_OnMousemove.bindAsEventListener(this), false); - Event.observe(this.el_container, 'mousedown', this.callbackContainer_OnMousedown.bindAsEventListener(this), false); - Event.observe(this.el_container, 'mouseup', this.callbackContainer_OnMouseup.bindAsEventListener(this), false); Event.observe(document.body, 'unload', this.callback_OnUnload.bindAsEventListener(this), false); }, @@ -699,22 +696,6 @@ } }, - callbackContainer_OnMousemove: function(evt) - { - this.isdraging = true; - }, - callbackContainer_OnMousedown: function(evt) - { - if ( ((is_ie || is_khtml) && evt.button == 1) || (is_ff && evt.button == 0) ) - this.isdraging = false; - }, - callbackContainer_OnMouseup: function(evt) - { - if ( ((is_ie || is_khtml) && evt.button == 1) || (is_ff && evt.button == 0) ) - if (!this.isdraging) - if (this.el_words && !this.minmax_status) - this.el_words.focus(); - }, /** * hide error area and stop blinking fields Modified: trunk/data/public/js/pfcprompt.js =================================================================== --- trunk/data/public/js/pfcprompt.js 2007-02-19 16:33:16 UTC (rev 971) +++ trunk/data/public/js/pfcprompt.js 2007-02-20 08:23:37 UTC (rev 972) @@ -25,7 +25,7 @@ this.box.id = 'pfc_promptbox'; this.box.style.position = 'absolute'; this.box.style.width = '330px'; - this.box.style.zIndex = '100'; + this.box.style.zIndex = 100; this.box.style.display = 'none'; var div = document.createElement('h2'); @@ -83,7 +83,7 @@ this.bgbox.style.filter = 'alpha(opacity=70)'; // this.bgbox.style.height = (document.body.offsetHeight<screen.height) ? screen.height+'px' : document.body.offsetHeight+20+'px'; this.bgbox.style.display = 'none'; - this.bgbox.style.zIndex = '50'; + this.bgbox.style.zIndex = 50; this.container.appendChild(this.bgbox); } }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |