Bug #22960 --> add on load header pane support, clear the header pane whenever we clear the message pane.

This commit is contained in:
mscott%netscape.com 2000-01-06 00:53:12 +00:00
Родитель 6c77b347ac
Коммит 9c9c878a02
1 изменённых файлов: 12 добавлений и 8 удалений

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

@ -152,6 +152,9 @@ function OnLoadMessenger()
AddToSession(); AddToSession();
// FIX ME - later we will be able to use onload from the overlay
OnLoadMsgHeaderPane();
var id = null; var id = null;
var headerchoice = null; var headerchoice = null;
@ -300,6 +303,7 @@ function InitMsgWindow()
{ {
msgWindow.statusFeedback = statusFeedback; msgWindow.statusFeedback = statusFeedback;
msgWindow.messageView = messageView; msgWindow.messageView = messageView;
msgWindow.msgHeaderSink = messageHeaderSink;
msgWindow.SetDOMWindow(window); msgWindow.SetDOMWindow(window);
} }
@ -478,7 +482,6 @@ function ClearThreadTreeSelection()
var tree = GetThreadTree(); var tree = GetThreadTree();
if(tree) if(tree)
{ {
dump('before clearItemSelection\n');
tree.clearItemSelection(); tree.clearItemSelection();
} }
@ -487,7 +490,9 @@ function ClearThreadTreeSelection()
function ClearMessagePane() function ClearMessagePane()
{ {
if (window.frames["messagepane"].location != "about:blank") if (window.frames["messagepane"].location != "about:blank")
window.frames["messagepane"].location = "about:blank" window.frames["messagepane"].location = "about:blank";
// hide the message header view AND the message pane...
HideMessageHeaderPane();
} }
function StopUrls() function StopUrls()
@ -508,7 +513,6 @@ function GetSelectedFolder()
function ThreadPaneOnClick(event) function ThreadPaneOnClick(event)
{ {
dump('In ThreadPaneOnClick\n');
var targetclass = event.target.getAttribute('class'); var targetclass = event.target.getAttribute('class');
debug('targetclass = ' + targetclass + '\n'); debug('targetclass = ' + targetclass + '\n');