[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. |