From 0ecdca57f09b5307c00625cadd7c1b11892468c1 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sat, 19 Jan 2008 14:58:32 +0000 Subject: [PATCH] target of send_message func managed by g_is_spawned var --- web/commons.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); -- 2.17.1