[Phpfreechat-svn] SF.net SVN: phpfreechat: [462] trunk/themes/default/templates/pfcclient.js.tpl.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-20 20:26:43
|
Revision: 462 Author: kerphi Date: 2006-04-20 13:26:36 -0700 (Thu, 20 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=462&view=rev Log Message: ----------- Clicking on the nickname in the user list, write the nickname + ', ' to the text input area (thanks to void). Modified Paths: -------------- trunk/themes/default/templates/pfcclient.js.tpl.php Modified: trunk/themes/default/templates/pfcclient.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-20 19:54:00 UTC (rev 461) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-04-20 20:26:36 UTC (rev 462) @@ -682,7 +682,11 @@ // nobr is not xhtml valid but it's a workeround // for IE which doesn't support 'white-space: pre' css rule var nobr = document.createElement('nobr'); - nobr.appendChild(document.createTextNode(nicks[i])); + var span = document.createElement('span'); + span.pfc_nick = nicks[i]; + span.onclick = function(){pfc.insert_text(this.pfc_nick+", ",""); return false;} + span.appendChild(document.createTextNode(nicks[i])); + nobr.appendChild(span); li.appendChild(nobr); li.style.borderBottom = '1px solid #AAA'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |