From: Matteo Nastasi (mop) Date: Sat, 26 Jan 2008 15:15:21 +0000 (+0000) Subject: table_idx via cookie X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=db7d3348f6424052661cf9ec1684972eb40423d4;hp=b48d74120c309b04c7e7d2fdebbf40b0482f4c69;p=brisk.git table_idx via cookie --- 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);