[Phpfreechat-svn] SF.net SVN: phpfreechat: [918] trunk/data/public/js
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2007-01-05 13:34:38
|
Revision: 918 http://svn.sourceforge.net/phpfreechat/?rev=918&view=rev Author: kerphi Date: 2007-01-05 05:34:37 -0800 (Fri, 05 Jan 2007) Log Message: ----------- [en] Bug fix: cannot close the private chat tab if the chatter is disconnected [0h30] [fr] Bug fix : impossible de fermer l'onglet des messages priv?\195?\169s si l'autre chatteur est d?\195?\169connect?\195?\169 [0h30] Modified Paths: -------------- trunk/data/public/js/pfcclient.js trunk/data/public/js/pfcgui.js Modified: trunk/data/public/js/pfcclient.js =================================================================== --- trunk/data/public/js/pfcclient.js 2007-01-05 13:11:18 UTC (rev 917) +++ trunk/data/public/js/pfcclient.js 2007-01-05 13:34:37 UTC (rev 918) @@ -888,12 +888,12 @@ * Call the ajax request function * Will query the server */ - sendRequest: function(cmd) + sendRequest: function(cmd, recipientid) { if (pfc_debug) if (cmd != "/update") trace('sendRequest: '+cmd); var rx = new RegExp('(^\/[^ ]+) *(.*)','ig'); - var recipientid = this.gui.getTabId(); + if (!recipientid) recipientid = this.gui.getTabId(); cmd = cmd.replace(rx, '$1 '+this.clientid+' '+(recipientid==''?'0':recipientid)+' $2'); return eval('pfc_handleRequest(cmd);'); }, Modified: trunk/data/public/js/pfcgui.js =================================================================== --- trunk/data/public/js/pfcgui.js 2007-01-05 13:11:18 UTC (rev 917) +++ trunk/data/public/js/pfcgui.js 2007-01-05 13:34:37 UTC (rev 918) @@ -255,7 +255,7 @@ a2.onclick = function(){ var res = confirm(pfc.res.getLabel('Do you really want to leave this room ?')); if (res == true) - pfc.sendRequest('/leave '+this.pfc_tabtype+' "'+this.pfc_tabname+'"'); + pfc.sendRequest('/leave',this.pfc_tabid); return false; } a2.alt = pfc.res.getLabel('Close this tab'); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |