[Phpfreechat-svn] SF.net SVN: phpfreechat: [1059] trunk/data/public/js/pfcgui.js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-07-30 10:36:56
|
Revision: 1059 http://phpfreechat.svn.sourceforge.net/phpfreechat/?rev=1059&view=rev Author: kerphi Date: 2007-07-30 03:36:58 -0700 (Mon, 30 Jul 2007) Log Message: ----------- Bug fix: fix alt img tags for smilies (thanks to Gerard Pinzone, sf patch 1762862) Modified Paths: -------------- trunk/data/public/js/pfcgui.js Modified: trunk/data/public/js/pfcgui.js =================================================================== --- trunk/data/public/js/pfcgui.js 2007-07-30 10:27:45 UTC (rev 1058) +++ trunk/data/public/js/pfcgui.js 2007-07-30 10:36:58 UTC (rev 1059) @@ -404,12 +404,13 @@ { s_url = sl[i]; s_symbol = smileys[sl[i]]; + s_symbol = s_symbol.unescapeHTML(); var img = document.createElement('img'); img.setAttribute('src', s_url); img.setAttribute('alt', s_symbol); img.setAttribute('title', s_symbol); - img.s_symbol = s_symbol.unescapeHTML(); + img.s_symbol = s_symbol; img.onclick = function(){ pfc.insertSmiley(this.s_symbol); } container.appendChild(img); container.appendChild(document.createTextNode(' ')); // so smileys will wrap fine if lot of smiles in theme. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |