home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2007 March
/
PCWorld_2007-03_cd.bin
/
komunikace
/
nvu
/
nvu-1.0-cs-CZ.win32.installer.exe
/
chrome
/
help.jar
/
content
/
help
/
toolbarCustomization.js
< prev
Wrap
Text File
|
2005-06-21
|
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("help-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);
}