home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2006 December
/
PCWorld_2006-12_cd.bin
/
komunikace
/
netscape
/
nsb-install-8-1-2.exe
/
chrome
/
help.jar
/
content
/
help
/
toolbarCustomization.js
< prev
Wrap
Text File
|
2006-01-06
|
1KB
|
37 lines
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);
}