add moderation window cleanup when logout
authorMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 1 Jul 2013 16:54:33 +0000 (18:54 +0200)
committerMatteo Nastasi (mop) <nastasi@alternativeoutput.it>
Mon, 1 Jul 2013 16:54:33 +0000 (18:54 +0200)
web/commons.js

index 4c0ea73..bc39719 100644 (file)
@@ -648,6 +648,11 @@ function act_shutdown()
 function postact_logout()
 {
     // alert("postact_logout");
+
+    if (g_moder.is_enabled()) {
+        g_moder.disable();
+    }
+
     try { 
        hstm.abort();
     } catch (e) {}