195285 - junk mail column placement incorrect for existing profiles. r=jag,sr/a=sspitzer.

This commit is contained in:
shliang%netscape.com 2003-05-06 01:04:17 +00:00
Родитель 9c312baa16
Коммит 64e17d2014
3 изменённых файлов: 22 добавлений и 7 удалений

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

@ -922,10 +922,23 @@ function UpgradeThreadPaneUI()
try {
threadPaneUIVersion = pref.getIntPref("mailnews.ui.threadpane.version");
if (threadPaneUIVersion < 3) {
var subjectCol = document.getElementById("subjectCol");
var junkCol = document.getElementById("junkStatusCol");
var threadTree = document.getElementById("threadTree");
var beforeCol = subjectCol.boxObject.nextSibling.boxObject.nextSibling;
if (beforeCol)
threadTree._reorderColumn(junkCol, beforeCol, true);
else // subjectCol was the last column, put it after
threadTree._reorderColumn(junkCol, subjectCol, false);
if (threadPaneUIVersion == 1) {
labelCol = document.getElementById("labelCol");
labelCol.setAttribute("hidden", "true");
pref.setIntPref("mailnews.ui.threadpane.version", 2);
}
pref.setIntPref("mailnews.ui.threadpane.version", 3);
}
}
catch (ex) {

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

@ -450,6 +450,7 @@ pref("mail.ui.folderpane.version", 1);
// for manual upgrades of certain UI features.
// 1 -> 2 is for the thread pane tree landing, to hide the
// labels column, see msgMail3PaneWindow.js
// 2 -> 3 is for the junk status column
pref("mailnews.ui.threadpane.version", 1);
// for manual upgrades of certain UI features.
// 1 -> 2 is for the ab results pane tree landing

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

@ -450,6 +450,7 @@ pref("mail.ui.folderpane.version", 1);
// for manual upgrades of certain UI features.
// 1 -> 2 is for the thread pane tree landing, to hide the
// labels column, see msgMail3PaneWindow.js
// 2 -> 3 is for the junk status column
pref("mailnews.ui.threadpane.version", 1);
// for manual upgrades of certain UI features.
// 1 -> 2 is for the ab results pane tree landing