rem: var aToolbarId = 'event-toolbar'; var aMenuItemId = 'menu-view-toolbar'; var toolbar = document.getElementById(aToolbarId); var toolbarCollapsed = toolbar.collapsed; if (toolbarCollapsed) { onCommandViewToolbar(aToolbarId, aMenuItemId); 
add: if (gIsSunbird) { #ifdef MOZILLA_1_8_BRANCH var newwindow = window.openDialog("chrome: "CustomizeToolbar", "chrome,all,dependent", document.getElementById(id)); #else window.openDialog("chrome: "CustomizeToolbar", "chrome,all,dependent", document.getElementById(id)); #endif } else { var wintype = document.documentElement.getAttribute("windowtype"); wintype = wintype.replace(/:/g, "");  window.openDialog("chrome: "CustomizeToolbar" + wintype, "chrome,all,dependent", document.getElementById(id), false, null, "dialog"); 
context: function onCommandCustomize() {    var id = "event-toolbox";    var aToolbarId = 'event-toolbar';    var aMenuItemId = 'menu-view-toolbar';    var toolbar = document.getElementById(aToolbarId);    var toolbarCollapsed = toolbar.collapsed;    if (toolbarCollapsed) {        onCommandViewToolbar(aToolbarId, aMenuItemId);    }    window.openDialog(        "chrome://calendar/content/sun-calendar-customize-toolbar.xul",        "CustomizeToolbar",        "chrome,all,dependent",        document.getElementById(id));}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/92cf095ef7fb463a1895371d3f11665a80860452/sun-calendar-event-dialog.js/clean/calendar/prototypes/wcap/sun-calendar-event-dialog.js