Bug 293192 Make sure clicking on a folder in the tree always returns to mail-view r=dmose

This commit is contained in:
jminta%gmail.com 2006-01-04 14:30:34 +00:00
Родитель 14ccffdff1
Коммит 28ef8f241b
1 изменённых файлов: 11 добавлений и 0 удалений

Просмотреть файл

@ -117,6 +117,17 @@ function showCalendar(aDate1, aDate2)
collapseElement(document.getElementById("threadpane-splitter"));
collapseElement(gSearchBox);
uncollapseElement(calendarViewBox);
// Thunderbird is smart. It won't reload the message list if the user
// clicks the same folder that's already selected. Therefore, we need
// to not only remove the tree selection (so clicking triggers an event)
// but also reset some of TB's internal variables.
var treeSel = document.getElementById("folderTree").view.selection;
treeSel.selectEventsSuppressed = true;
treeSel.clearSelection();
treeSel.selectEventsSuppressed = false;
gMsgFolderSelected = null;
msgWindow.openFolder = null;
}
var view = currentView();