From b671dd14e82456e3c445bd104876f00bbcec4fa8 Mon Sep 17 00:00:00 2001 From: "Matteo Nastasi (mop)" Date: Tue, 9 Jul 2013 07:37:59 +0200 Subject: [PATCH] modifications with development purposes --- web/Obj/brisk.phh | 9 ++++++--- web/commons.js | 4 +++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 7c2989f..62a6dda 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -1689,9 +1689,12 @@ class Room continue; if ($user_cur->flags_vlt_get(USER_FLAG_MODER)) { - $user_cur->comm[$user_cur->step % COMM_N] .= sprintf('g_moder.add([%d, "%s", %d, "%s", "%s"]);' , - $curtime, "userid", - ($user->stat == 'table' ? $user->table : -1), + $user_cur->comm[$user_cur->step % COMM_N] = sprintf('gst.st = %d; g_moder.add([%d, "%s", %d, "%s", "%s"]);', + $user_cur->step+1, $curtime, "userid", + // FIXME: FOR DEVEL REASON WE SUBSTITUTE THIS: + // ($user->stat == 'table' ? $user->table : -1), + // with + ($user->subst == 'sitdown' ? $user->table : -1), xcape($user->name), xcape($msg) ); $user_cur->step_inc(); } diff --git a/web/commons.js b/web/commons.js index 456416b..be7cac3 100644 --- a/web/commons.js +++ b/web/commons.js @@ -553,7 +553,9 @@ Moderate.prototype = { if (enable) { this.disable(); - this.win = window.open("moderation.php", "_blank", "width=800,height=600,toolbar=no,location=no,menubar=no,status=no"); + // FIXME: remove scrollbars, only for devel reason + // this.win = window.open("moderation.php", "_blank", "width=800,height=600,toolbar=no,location=no,menubar=no,status=no"); + this.win = window.open("moderation.php", "_blank", "width=800,height=600,toolbar=no,location=no,menubar=no,status=no,scrollbars=yes"); if (this.win == null) { this.disable(); return false; -- 2.17.1