From: Matteo Nastasi (mop) Date: Tue, 9 Jul 2013 05:37:59 +0000 (+0200) Subject: modifications with development purposes X-Git-Url: http://mop.ddnsfree.com/gitweb/?a=commitdiff_plain;h=b671dd14e82456e3c445bd104876f00bbcec4fa8;p=brisk.git modifications with development purposes --- 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;