function CustomizeToolbar(id) { var customizePopup = document.getElementById("cmd_CustomizeToolbars"); customizePopup.setAttribute("disabled", "true"); window.openDialog("chrome://help/content/customizeToolbar.xul", "CustomizeToolbar", "chrome,all,dependent", document.getElementById(id)); } function ToolboxCustomizeDone(aToolboxChanged) { var customizePopup = document.getElementById("cmd_CustomizeToolbars"); customizePopup.removeAttribute("disabled"); if (this.UpdateToolbar != undefined) UpdateToolbar(focus); var sidebarButton = document.getElementById("sidebar-button"); var strBundle = document.getElementById("bundle_help"); if (document.getElementById("helpsidebar-box").hidden) { sidebarButton.label = strBundle.getString("showSidebarLabel"); } else { sidebarButton.label = strBundle.getString("hideSidebarLabel"); } } function UpdateToolbar(caller) { document.commandDispatcher.updateCommands('help-toolbar'); var customizePopup = document.getElementById("cmd_CustomizeToolbars"); customizePopup.removeAttribute("disabled"); var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); observerService.notifyObservers(window, "help:updateToolbarItems", null); }