fix for #96979. hide the Total and Unread folder columns for existing profiles.

r=mscott, sr=bienvenu
This commit is contained in:
sspitzer%netscape.com 2001-09-22 00:13:21 +00:00
Родитель 3885f1b3ea
Коммит 43f678087a
3 изменённых файлов: 31 добавлений и 0 удалений

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

@ -622,8 +622,29 @@ function OnFolderUnreadColAttrModified(event)
}
}
// builds prior to 8-14-2001 did not have the unread and total columns
// in the folder pane. so if a user ran an old build, and then
// upgraded, they get the new columns, and this causes problems
// because it looks like all the folder names are gone (see bug #96979)
// to work around this, we hide those columns once, using the
// "mail.ui.folderpane.version" pref.
function UpgradeFolderPaneUI()
{
var folderPaneUIVersion = pref.GetIntPref("mail.ui.folderpane.version");
if (folderPaneUIVersion == 1) {
var folderUnreadCol = document.getElementById("folderUnreadCol");
folderUnreadCol.setAttribute("hidden", "true");
var folderTotalCol = document.getElementById("folderTotalCol");
folderTotalCol.setAttribute("hidden", "true");
pref.SetIntPref("mail.ui.folderpane.version", 2);
}
}
function OnLoadFolderPane()
{
UpgradeFolderPaneUI();
var folderUnreadCol = document.getElementById("folderUnreadCol");
var hidden = folderUnreadCol.getAttribute("hidden");
if (!hidden)

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

@ -311,3 +311,8 @@ pref("mail.content_disposition_type", 0);
pref("mailnews.show_send_progress", true); //Will show a progress dialog when saving or sending a message
pref("mail.server.default.retainBy", 1);
// for manual upgrades of certain UI features.
// 1 -> 2 is for the folder pane outliner landing, to hide the
// unread and total columns, see msgMail3PaneWindow.js
pref("mail.ui.folderpane.version", 1);

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

@ -311,3 +311,8 @@ pref("mail.content_disposition_type", 0);
pref("mailnews.show_send_progress", true); //Will show a progress dialog when saving or sending a message
pref("mail.server.default.retainBy", 1);
// for manual upgrades of certain UI features.
// 1 -> 2 is for the folder pane outliner landing, to hide the
// unread and total columns, see msgMail3PaneWindow.js
pref("mail.ui.folderpane.version", 1);