[Phpfreechat-svn] SF.net SVN: phpfreechat: [560] trunk/themes/default/templates/pfcclient.js.tpl.ph
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-06-09 09:16:41
|
Revision: 560 Author: kerphi Date: 2006-06-09 02:16:36 -0700 (Fri, 09 Jun 2006) ViewCVS: http://svn.sourceforge.net/phpfreechat/?rev=560&view=rev Log Message: ----------- notify the unactive tab only on new received messages 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-06-09 08:43:34 UTC (rev 559) +++ trunk/themes/default/templates/pfcclient.js.tpl.php 2006-06-09 09:16:36 UTC (rev 560) @@ -699,6 +699,14 @@ line += '<span class="<?php echo $prefix; ?>words">'+ this.parseMessage(param) +'</span> '; line += '</div>'; + // notify the hidden tab a message has been received + if (cmd == 'send' || cmd == 'me') + { + var tabid = recipientid; + if (this.gui.getTabId() != tabid) + this.gui.notifyTab(tabid); + } + if (msg_html[recipientid] == null) msg_html[recipientid] = line; else @@ -711,9 +719,6 @@ { var recipientid = keys[i]; var tabid = recipientid; - - if (this.gui.getTabId() != tabid) - this.gui.notifyTab(tabid); // create the tab if it doesn't exists yet var recipientdiv = this.gui.getChatContentFromTabId(tabid); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |