Changeset c5d379


Ignore:
Timestamp:
May 21, 2008, 6:08:46 PM (14 years ago)
Author:
rene <rene@…>
Branches:
master
Children:
a372df
Parents:
a7a29e
Message:

show upgrade information also if debug-area is hidden

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chrome/content/v_identity/vI_notificationBar.js

    ra7a29e rc5d379  
    2727    timer : null,
    2828    timeout : 5000,
     29    upgrade : true,
    2930   
    3031    preferences : Components.classes["@mozilla.org/preferences-service;1"]
     
    7576        vI_notificationBar.Obj_DebugBox = document.getElementById("vIDebugBox");
    7677        if (!vI_notificationBar.Obj_DebugBox) return false;
    77        
     78        vI_notificationBar.upgrade = vI_notificationBar.Obj_DebugBox.getAttribute("upgrade")
     79
    7880        // nothing else to do for the upgrade dialog
    79         if (vI_notificationBar.Obj_DebugBox.getAttribute("upgrade")) return true;
     81        if (vI_notificationBar.upgrade) return true;
    8082       
    8183        vI_notificationBar.Obj_vINotification = document.getElementById("vINotification");
     
    145147   
    146148    dump : function(note) {
    147         if (!vI_notificationBar.preferences.getBoolPref("debug_notification")) return;
     149        if (!vI_notificationBar.Obj_DebugBox) vI_notificationBar.init()
     150        if (!vI_notificationBar.preferences.getBoolPref("debug_notification") &&
     151            !vI_notificationBar.upgrade) return;
    148152        dump(note); vI_notificationBar.__dumpDebugBox(note);
    149153    },
    150154
    151155    __dumpDebugBox : function(note) {
    152         if (!vI_notificationBar.preferences.getBoolPref("debug_notification") ||
     156        if ((!vI_notificationBar.preferences.getBoolPref("debug_notification") &&
     157            !vI_notificationBar.upgrade) ||
    153158            vI_notificationBar.quiet) return;
    154159        if (!vI_notificationBar.Obj_DebugBox &&
Note: See TracChangeset for help on using the changeset viewer.