Don't keep growler log on popup pages.
authorMichael M Slusarz <slusarz@curecanti.org>
Fri, 26 Jun 2009 16:58:37 +0000 (10:58 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Fri, 26 Jun 2009 17:20:04 +0000 (11:20 -0600)
imp/js/src/DimpCore.js
imp/js/src/compose-dimp.js
imp/js/src/fullmessage-dimp.js

index ea5c0f0..c781f76 100644 (file)
@@ -13,6 +13,7 @@ var DimpCore = {
     // Vars used and defaulting to null/false:
     //   DMenu, Growler, inAjaxCallback, is_init, is_logout,
     //   onDoActionComplete
+    growler_log: true,
     is_ie6: false /*@cc_on || @_jscript_version < 5.7 @*/,
     server_error: 0,
 
@@ -487,7 +488,7 @@ var DimpCore = {
         /* Add Growler notification handler. */
         this.Growler = new Growler({
             location: 'br',
-            log: true,
+            log: this.growler_log,
             noalerts: DIMP.text.noalerts
         });
 
index 1a3bb1a..497f1c4 100644 (file)
@@ -724,6 +724,7 @@ var DimpCompose = {
     {
         var boundResize = this.resizeMsgArea.bind(this);
 
+        DimpCore.growler_log = false;
         DimpCore.init();
 
         /* Attach event handlers. */
index 0c10929..a6a516e 100644 (file)
@@ -140,6 +140,7 @@ var DimpFullmessage = {
 
     onDomLoad: function()
     {
+        DimpCore.growler_log = false;
         DimpCore.init();
 
         if (DIMP.conf.disable_compose) {