modifications with development purposes
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 9 Jul 2013 05:37:59 +0000 (07:37 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Tue, 9 Jul 2013 05:37:59 +0000 (07:37 +0200)
web/Obj/brisk.phh
web/commons.js

index 7c2989f..62a6dda 100644 (file)
@@ -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();
             }
index 456416b..be7cac3 100644 (file)
@@ -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;