rem:  document.getElementById("selector-list").value = window.arguments[3]; 
add:    var selectorList = document.getElementById("selector-list"); selectorList.value = window.arguments[3]; if (selectorList.selectedItem.value != window.arguments[3]) { document.getElementById("selector-container").collapsed = true; } 
context: initDialog = function(){  // remember initialo toolbar location and set the  // menulist accordingly. this applies to the mode toolbar only.  gPreviousLocation = gToolbox.getAttribute("location");  document.getElementById("loction-list").value = gPreviousLocation;    // set the toolbar selection according to the current mode.  // this list allows to hop from one toolbar to another without  // leaving the customize dialog.  document.getElementById("selector-list").value = window.arguments[3];    // now call the original initDialog() function  gInitDialog();}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/92cf095ef7fb463a1895371d3f11665a80860452/customize-toolbar.js/clean/calendar/lightning/content/customize-toolbar.js