зеркало из 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
|
@ -138,9 +138,9 @@ var folderListener = {
|
||||||
/* Functions related to startup */
|
/* Functions related to startup */
|
||||||
function OnLoadMessenger()
|
function OnLoadMessenger()
|
||||||
{
|
{
|
||||||
verifyAccounts();
|
verifyAccounts();
|
||||||
|
|
||||||
loadStartPage();
|
loadStartPage();
|
||||||
InitMsgWindow();
|
InitMsgWindow();
|
||||||
|
|
||||||
messenger.SetWindow(window, msgWindow);
|
messenger.SetWindow(window, msgWindow);
|
||||||
|
@ -148,9 +148,12 @@ function OnLoadMessenger()
|
||||||
AddDataSources();
|
AddDataSources();
|
||||||
InitPanes();
|
InitPanes();
|
||||||
|
|
||||||
loadStartFolder();
|
loadStartFolder();
|
||||||
|
|
||||||
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,7 +303,8 @@ function InitMsgWindow()
|
||||||
{
|
{
|
||||||
msgWindow.statusFeedback = statusFeedback;
|
msgWindow.statusFeedback = statusFeedback;
|
||||||
msgWindow.messageView = messageView;
|
msgWindow.messageView = messageView;
|
||||||
msgWindow.SetDOMWindow(window);
|
msgWindow.msgHeaderSink = messageHeaderSink;
|
||||||
|
msgWindow.SetDOMWindow(window);
|
||||||
}
|
}
|
||||||
|
|
||||||
function AddDataSources()
|
function AddDataSources()
|
||||||
|
@ -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');
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче