[Phpfreechat-svn] SF.net SVN: phpfreechat: [731] trunk/src/client/pfcclient.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-03 17:28:42
|
Revision: 731 http://svn.sourceforge.net/phpfreechat/?rev=731&view=rev Author: kerphi Date: 2006-09-03 10:28:36 -0700 (Sun, 03 Sep 2006) Log Message: ----------- Bug fix: on mozilla if the user cancel the bbcode prompt popup, a js error occurs Modified Paths: -------------- trunk/src/client/pfcclient.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-09-03 16:22:24 UTC (rev 730) +++ trunk/src/client/pfcclient.js 2006-09-03 17:28:36 UTC (rev 731) @@ -1206,6 +1206,7 @@ if (startPos == endPos && promptifselempty) { text = prompt(this.res.getLabel('Enter the text to format'),''); + if (text == null) text = ""; extralength = text.length; } if (text.length > 0 || !promptifselempty) @@ -1220,6 +1221,7 @@ else { var text = prompt(this.res.getLabel('Enter the text to format'),''); + if (text == null) text = ""; if (text.length > 0 || !promptifselempty) { msgfield.value += open + text + close; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |