Revision: 1183
http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1183&view=rev
Author: gpinzone
Date: 2007-09-06 12:18:04 -0700 (Thu, 06 Sep 2007)
Log Message:
-----------
Fixed IE Javascript problem.
Modified Paths:
--------------
trunk/data/public/js/pfcresource.js
Modified: trunk/data/public/js/pfcresource.js
===================================================================
--- trunk/data/public/js/pfcresource.js 2007-09-06 17:51:11 UTC (rev 1182)
+++ trunk/data/public/js/pfcresource.js 2007-09-06 19:18:04 UTC (rev 1183)
@@ -76,18 +76,18 @@
return this.smileyskeys.sort(
function (a,b)
{
- a = a.unescapeHTML();
- b = b.unescapeHTML();
+ var x = a.unescapeHTML();
+ var y = b.unescapeHTML();
// Replace " with " for IE and Webkit browsers.
// The prototype.js version 1.5.1.1 unescapeHTML() function does not do this.
if (is_ie || is_webkit)
{
- a = a.replace(/"/g,'"');
- b = b.replace(/"/g,'"');
+ x = x.replace(/"/g,'"');
+ y = y.replace(/"/g,'"');
}
- return (b.length - a.length);
+ return (y.length - x.length);
}
);
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|