[Phpfreechat-svn] SF.net SVN: phpfreechat: [474] trunk/themes/default/templates/pfcgui.js.tpl.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-04-26 08:43:41
|
Revision: 474 Author: kerphi Date: 2006-04-26 01:43:35 -0700 (Wed, 26 Apr 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=474&view=rev Log Message: ----------- Bug fix: leaving a channel didn't clear the chat area correctly so when coming back, double messages appears (thanks to nemako for the bug report http://www.phpfreechat.net/forum/viewtopic.php?id=265). Modified Paths: -------------- trunk/themes/default/templates/pfcgui.js.tpl.php Modified: trunk/themes/default/templates/pfcgui.js.tpl.php =================================================================== --- trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-25 13:00:45 UTC (rev 473) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-04-26 08:43:35 UTC (rev 474) @@ -155,6 +155,10 @@ tabparent_t.removeChild(tab_t); tabparent_c.removeChild(tab_c); + // empty the chat div content + var div_chat = this.getChatContentFromTabId(tabid); + div_chat.innerHTML = ''; + // remove the tab from the list var tabpos = this.tabids.indexOf(tabid); var name = this.tabs[tabpos]; @@ -241,7 +245,7 @@ $('<?php echo $prefix; ?>channels_list').appendChild(li_title); $('<?php echo $prefix; ?>channels_content').appendChild(div_content); - + return tabid; }, This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |