From: Matteo Nastasi Date: Sun, 29 Mar 2020 18:26:34 +0000 (+0200) Subject: update 'ws_msg' content X-Git-Tag: v5.6.0 X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=f8605f6d02dc4b8f69a74f6aaafd770a033a8840;p=brisk.git update 'ws_msg' content --- diff --git a/web/commons.js b/web/commons.js index c65dd51..62d3330 100644 --- a/web/commons.js +++ b/web/commons.js @@ -274,8 +274,16 @@ function send_mesg(mesg, content) } var target = window.location.href.substring(0, window.location.href.lastIndexOf('/') + 1) + 'index_wr.php'; - var ws_msg = JSON.stringify({target: target, mesg: mesg, stp:gst.st, sess:sess}); - console.log(ws_msg); + var ws_msg = JSON.stringify({ + target: target, + mesg: mesg, + stp:gst.st, + sess:sess, + table_idx: readCookie("table_idx"), + table_token: readCookie("table_token"), + lang: readCookie("lang") + }); + // console.log(ws_msg); xstm.transp.ws.send(ws_msg); } else {