[Phpfreechat-svn] SF.net SVN: phpfreechat: [538] trunk/themes/default/templates/pfcgui.js.tpl.php
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-05-31 14:58:07
|
Revision: 538 Author: kerphi Date: 2006-05-31 07:58:00 -0700 (Wed, 31 May 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=538&view=rev Log Message: ----------- Bug fix: when someone posted a message on a none active tab, the scrollbar was reset. Now it is just not updated (better than nothing). 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-05-31 14:50:34 UTC (rev 537) +++ trunk/themes/default/templates/pfcgui.js.tpl.php 2006-05-31 14:58:00 UTC (rev 538) @@ -27,6 +27,7 @@ */ scrollDown: function(tabid, elttoscroll) { + if (this.getTabId() != tabid) return; /* do nothing if this is not the current tab or it will reset the scrollbar position to 0 */ var content = this.getChatContentFromTabId(tabid); content.scrollTop += elttoscroll.offsetHeight+2; this.scrollpos[tabid] = content.scrollTop; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |