[Phpfreechat-svn] SF.net SVN: phpfreechat: [751] trunk/src/client
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-09-11 16:36:41
|
Revision: 751 http://svn.sourceforge.net/phpfreechat/?rev=751&view=rev Author: kerphi Date: 2006-09-11 09:36:33 -0700 (Mon, 11 Sep 2006) Log Message: ----------- working progress : window notifier Modified Paths: -------------- trunk/src/client/pfcclient.js trunk/src/client/pfcgui.js Modified: trunk/src/client/pfcclient.js =================================================================== --- trunk/src/client/pfcclient.js 2006-09-11 11:55:53 UTC (rev 750) +++ trunk/src/client/pfcclient.js 2006-09-11 16:36:33 UTC (rev 751) @@ -690,14 +690,16 @@ line += '<span class="pfc_words">'+ this.parseMessage(param) +'</span> '; line += '</div>'; - // notify the hidden tab a message has been received - // don't notify anything if this is old messages if (oldmsg == 0) if (cmd == 'send' || cmd == 'me') { + // notify the hidden tab a message has been received + // don't notify anything if this is old messages var tabid = recipientid; if (this.gui.getTabId() != tabid) this.gui.notifyTab(tabid); + // notify the window (change the title) + this.gui.notifyWindow(); } if (msg_html[recipientid] == null) Modified: trunk/src/client/pfcgui.js =================================================================== --- trunk/src/client/pfcgui.js 2006-09-11 11:55:53 UTC (rev 750) +++ trunk/src/client/pfcgui.js 2006-09-11 16:36:33 UTC (rev 751) @@ -263,6 +263,16 @@ }, /** + * This function change the window title in order to catch the attention + */ + notifyWindow: function() + { + var el_title = document.getElementsByTagName('title'); +// el_title[0].innerHTML = '[*]'; + }, + + + /** * This function change the tab icon in order to catch the attention */ notifyTab: function(tabid) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |