From db7d3348f6424052661cf9ec1684972eb40423d4 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Sat, 26 Jan 2008 15:15:21 +0000 Subject: [PATCH] table_idx via cookie --- web/commons.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/commons.js b/web/commons.js index 8320845..091325c 100644 --- a/web/commons.js +++ b/web/commons.js @@ -22,6 +22,7 @@ var PLAYERS_N = 3; var EXIT_BAN_TIME = 900; +var cookiepath = "/brisk/"; function $(id) { return document.getElementById(id); } @@ -176,8 +177,7 @@ 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+(g_is_spawn == 1 ? '&table_idx='+g_table_idx : '')+'&mesg='+mesg, true); + xhr_wr.open('GET', 'index_wr.php?sess='+sess+'&mesg='+encodeURIComponent(mesg), true); xhr_wr.onreadystatechange = function() { return; }; xhr_wr.send(null); -- 2.17.1