зеркало из https://github.com/mozilla/pjs.git
Bug #22960 --> add on load header pane support, clear the header pane whenever we clear the message pane.
This commit is contained in:
Родитель
6c77b347ac
Коммит
9c9c878a02
|
@ -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');
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче