Thread: [Phpfreechat-svn] SF.net SVN: phpfreechat: [1039] trunk/data/public/js/pfcprompt.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-06-26 10:02:44
|
Revision: 1039 http://svn.sourceforge.net/phpfreechat/?rev=1039&view=rev Author: kerphi Date: 2007-06-26 03:02:44 -0700 (Tue, 26 Jun 2007) Log Message: ----------- Bug fix: sometime, FF has problem with cursor in the input field prompt (sourceforge bug 1709581) Modified Paths: -------------- trunk/data/public/js/pfcprompt.js Modified: trunk/data/public/js/pfcprompt.js =================================================================== --- trunk/data/public/js/pfcprompt.js 2007-06-26 09:45:59 UTC (rev 1038) +++ trunk/data/public/js/pfcprompt.js 2007-06-26 10:02:44 UTC (rev 1039) @@ -27,6 +27,10 @@ this.box.style.zIndex = 100; this.box.style.display = 'none'; + if (is_ff) { + this.box.style.overflow = 'auto'; + } + var div = document.createElement('h2'); div.appendChild(document.createTextNode(pfc.res.getLabel('Input Required'))); this.box.appendChild(div); @@ -115,6 +119,7 @@ { // _doSubmit is called when the user enters or cancels the box. var val = this.prompt_field.value; + this.box.focus(); this.box.style.display = 'none'; // clear out the dialog box this.bgbox.style.display = 'none'; // clear out the screen this.prompt_field.value = ''; // clear out the text field This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ke...@us...> - 2007-07-01 15:17:54
|
Revision: 1051 http://svn.sourceforge.net/phpfreechat/?rev=1051&view=rev Author: kerphi Date: 2007-07-01 08:17:56 -0700 (Sun, 01 Jul 2007) Log Message: ----------- The login box was broken on KHTML browsers Modified Paths: -------------- trunk/data/public/js/pfcprompt.js Modified: trunk/data/public/js/pfcprompt.js =================================================================== --- trunk/data/public/js/pfcprompt.js 2007-07-01 11:52:09 UTC (rev 1050) +++ trunk/data/public/js/pfcprompt.js 2007-07-01 15:17:56 UTC (rev 1051) @@ -119,7 +119,7 @@ { // _doSubmit is called when the user enters or cancels the box. var val = this.prompt_field.value; - this.box.focus(); + if (is_ff) this.box.focus(); // test is_ff because it doesn't work on KHTML browser, the popup shows infinitly this.box.style.display = 'none'; // clear out the dialog box this.bgbox.style.display = 'none'; // clear out the screen this.prompt_field.value = ''; // clear out the text field This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gpi...@us...> - 2007-08-16 23:40:20
|
Revision: 1128 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1128&view=rev Author: gpinzone Date: 2007-08-16 16:40:18 -0700 (Thu, 16 Aug 2007) Log Message: ----------- Allow blackout of chat area on IE7. IE6 and lower still does whole screen. Blackout height/width fixed for IE 5.5. Modified Paths: -------------- trunk/data/public/js/pfcprompt.js Modified: trunk/data/public/js/pfcprompt.js =================================================================== --- trunk/data/public/js/pfcprompt.js 2007-08-16 17:46:48 UTC (rev 1127) +++ trunk/data/public/js/pfcprompt.js 2007-08-16 23:40:18 UTC (rev 1128) @@ -5,7 +5,7 @@ pfcPrompt.prototype = { initialize: function(container) { - if (container == undefined || is_ie) + if (container == undefined || (is_ie && !is_ie7)) container = document.getElementsByTagName('body')[0]; this.container = container; this.box = $('pfc_promptbox'); @@ -102,8 +102,18 @@ var pos = this._findPos(this.container); this.bgbox.style.top = pos[1]+'px'; this.bgbox.style.left = pos[0]+'px'; - this.bgbox.style.height = this.container.offsetHeight+'px'; - this.bgbox.style.width = this.container.offsetWidth+'px'; + /* Some older IE browsers (e.g., IE 5.5) need scrollHeight/scrollWidth. + See: http://www.quirksmode.org/viewport/compatibility.html */ + if (this.container.scrollHeight > this.container.offsetHeight) + { + this.bgbox.style.height = this.container.scrollHeight+'px'; + this.bgbox.style.width = this.container.scrollWidth+'px'; + } + else + { + this.bgbox.style.height = this.container.offsetHeight+'px'; + this.bgbox.style.width = this.container.offsetWidth+'px'; + } this.bgbox.style.display = 'block'; // Position the dialog box on the screen and make it visible. @@ -132,13 +142,13 @@ _findPos: function(obj) { - var curleft = curtop = 0; + var curleft = curtop = 0; if (obj.offsetParent) { - curleft = obj.offsetLeft; - curtop = obj.offsetTop; - while (obj = obj.offsetParent) { + curleft = obj.offsetLeft; + curtop = obj.offsetTop; + while (obj = obj.offsetParent) { curleft += obj.offsetLeft; - curtop += obj.offsetTop; + curtop += obj.offsetTop; } } return [curleft,curtop]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <gpi...@us...> - 2007-08-17 11:59:04
|
Revision: 1129 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1129&view=rev Author: gpinzone Date: 2007-08-17 04:59:00 -0700 (Fri, 17 Aug 2007) Log Message: ----------- IE 5.5 fix needed fixing. Modified Paths: -------------- trunk/data/public/js/pfcprompt.js Modified: trunk/data/public/js/pfcprompt.js =================================================================== --- trunk/data/public/js/pfcprompt.js 2007-08-16 23:40:18 UTC (rev 1128) +++ trunk/data/public/js/pfcprompt.js 2007-08-17 11:59:00 UTC (rev 1129) @@ -104,7 +104,8 @@ this.bgbox.style.left = pos[0]+'px'; /* Some older IE browsers (e.g., IE 5.5) need scrollHeight/scrollWidth. See: http://www.quirksmode.org/viewport/compatibility.html */ - if (this.container.scrollHeight > this.container.offsetHeight) + if (this.container.scrollHeight > this.container.offsetHeight + || this.container.scrollWidth > this.container.offsetWidth) { this.bgbox.style.height = this.container.scrollHeight+'px'; this.bgbox.style.width = this.container.scrollWidth+'px'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ste...@gm...> - 2007-08-17 12:29:57
|
Does it means pfc works with IE 5.5 ? I thought prototype js librairy was not compatible with IE 5.5, am I wrong = ? (I don't have IE5.5 to test ...) On 8/17/07, gpi...@us... <gpi...@us...> wrote: > Revision: 1129 > http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=3D1129&= view=3Drev > Author: gpinzone > Date: 2007-08-17 04:59:00 -0700 (Fri, 17 Aug 2007) > > Log Message: > ----------- > IE 5.5 fix needed fixing. > > Modified Paths: > -------------- > trunk/data/public/js/pfcprompt.js > > Modified: trunk/data/public/js/pfcprompt.js > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- trunk/data/public/js/pfcprompt.js 2007-08-16 23:40:18 UTC (rev 1128= ) > +++ trunk/data/public/js/pfcprompt.js 2007-08-17 11:59:00 UTC (rev 1129= ) > @@ -104,7 +104,8 @@ > this.bgbox.style.left =3D pos[0]+'px'; > /* Some older IE browsers (e.g., IE 5.5) need scrollHeight/scrollWid= th. > See: http://www.quirksmode.org/viewport/compatibility.html */ > - if (this.container.scrollHeight > this.container.offsetHeight) > + if (this.container.scrollHeight > this.container.offsetHeight > + || this.container.scrollWidth > this.container.offsetWidth) > { > this.bgbox.style.height =3D this.container.scrollHeight+'px'; > this.bgbox.style.width =3D this.container.scrollWidth+'px'; > > > This was sent by the SourceForge.net collaborative development platform, = the world's largest Open Source development site. > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. > Still grepping through log files to find problems? Stop. > Now Search log events and configuration files using AJAX and a browser. > Download your FREE copy of Splunk now >> http://get.splunk.com/ > _______________________________________________ > Phpfreechat-svn mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpfreechat-svn > --=20 St=E9phane GULLY http://www.zeitoun.net |