rem:  var contentDeck = document.getElementById("contentPanel"); contentDeck.selectedPanel = document.getElementById("folderPaneBox");      gMsgFolderSelected = null; msgWindow.openFolder = null; ShowThreadPane(); FolderPaneSelectionChange();  document.commandDispatcher.updateCommands('mail-toolbar'); document.commandDispatcher.updateCommands('calendar_commands'); } 
add:  var contentDeck = document.getElementById("contentPanel"); contentDeck.selectedPanel = document.getElementById("folderPaneBox");      gMsgFolderSelected = null; msgWindow.openFolder = null; ShowThreadPane(); FolderPaneSelectionChange();  document.commandDispatcher.updateCommands('mail-toolbar'); document.commandDispatcher.updateCommands('calendar_commands'); } 
context: function ltnSwitch2Mail() {  if (gCurrentMode != 'mail') {    var switch2mail = document.getElementById("switch2mail");    var switch2calendar = document.getElementById("switch2calendar");    switch2mail.setAttribute("checked", "true");    switch2calendar.removeAttribute("checked");    gCurrentMode = 'mail';    var mailToolbar = getMailBar();    var calendarToolbar = document.getElementById("calendar-toolbar");    mailToolbar.removeAttribute("collapsed");    calendarToolbar.setAttribute("collapsed", "true");    // the content panel should display the folder tree    var contentDeck = document.getElementById("contentPanel");    contentDeck.selectedPanel = document.getElementById("folderPaneBox");        // tell thunderbird that it needs to refresh the mail list.    // basically, we fake a selection change by directly calling    // the appropriate handler while clearing out some internal    // variables in order to force a refresh of the mail views.    gMsgFolderSelected = null;    msgWindow.openFolder = null;    ShowThreadPane();    FolderPaneSelectionChange();        document.commandDispatcher.updateCommands('mail-toolbar');    document.commandDispatcher.updateCommands('calendar_commands');  }}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/9421/adf8def97c78eca43decf76e12f684786f6bea7d/messenger-overlay-toolbar.js/buggy/calendar/lightning/content/messenger-overlay-toolbar.js