From: Matteo Nastasi (mop) Date: Sat, 19 Jan 2008 14:58:32 +0000 (+0000) Subject: target of send_message func managed by g_is_spawned var X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=0ecdca57f09b5307c00625cadd7c1b11892468c1;p=brisk.git target of send_message func managed by g_is_spawned var --- diff --git a/web/commons.js b/web/commons.js index 2eb5e01..8320845 100644 --- a/web/commons.js +++ b/web/commons.js @@ -174,8 +174,10 @@ function createXMLHttpRequest() { function send_mesg(mesg) { var xhr_wr = createXMLHttpRequest(); + + // xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+encodeURIComponent(mesg), true); - xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+mesg, true); + xhr_wr.open('GET', 'index_wr.php?sess='+sess+(g_is_spawn == 1 ? '&table_idx='+g_table_idx : '')+'&mesg='+mesg, true); xhr_wr.onreadystatechange = function() { return; }; xhr_wr.send(null);