Changeset 46d6d4


Ignore:
Timestamp:
Apr 9, 2010, 11:32:47 AM (12 years ago)
Author:
rene <rene@…>
Branches:
multiEdit, ng_0.6, ng_0.8, ng_0.9
Children:
01d590
Parents:
3f0e1d
Message:

load Online-Help only if page is shown

File:
1 edited

Legend:

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

    r3f0e1d r46d6d4  
    2828        if (browserElem.getAttribute("hidden")) {
    2929            window.resizeBy( 200, 0);
    30             vI_prefDialog.updateHelpUrl();
    3130            browserElem.removeAttribute("hidden");
    3231        } else {
     
    3433            browserElem.setAttribute("hidden", "true");
    3534        }
     35        vI_prefDialog.updateHelpUrl();
    3636    },
    3737
    3838    updateHelpUrl : function(tabpanel) {
     39        var browserElem = document.getElementById("vI_remoteBrowserBox");
     40        if (browserElem.getAttribute("hidden")) return;             // don't load any url if browser is hidden
    3941        var panelIndex = (tabpanel)?tabpanel:document.getElementById('prefTabbox').selectedIndex
    4042        var prefTree = document.getElementById('prefTabbox').selectedPanel.getElementsByAttribute("class", "vIprefTree")[0];
Note: See TracChangeset for help on using the changeset viewer.