Bug #214896 --> re-work the window title for the mail 3pane window verses the stand alone message window.

This commit is contained in:
scott%scott-macgregor.org 2004-06-06 21:08:53 +00:00
Родитель ba57e1fb6d
Коммит 0c712d98b7
1 изменённых файлов: 11 добавлений и 6 удалений

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

@ -98,14 +98,19 @@ function LoadMessageByUri(uri)
function setTitleFromFolder(msgfolder, subject)
{
var title = subject || "";
var wintype = document.firstChild.getAttribute('windowtype');
var title;
if (msgfolder)
// If we are showing the mail:3pane. Never include the subject of the selected
// message in the title. ("Inbox for greenlantern@mozilla.org - Mozilla Thunderbird")
// If we are a stand alone message window, we should show the Subject
// and the product but not the account name: "Re: New window Title - Mozilla Thunderbird"
if (wintype == "mail:messageWindow")
title = subject;
else if (msgfolder)
{
if (title)
title += " - ";
title += msgfolder.prettyName;
title = msgfolder.prettyName;
if (!msgfolder.isServer)
{