зеркало из https://github.com/mozilla/pjs.git
195285 - junk mail column placement incorrect for existing profiles. r=jag,sr/a=sspitzer.
This commit is contained in:
Родитель
9c312baa16
Коммит
64e17d2014
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче