зеркало из https://github.com/mozilla/gecko-dev.git
add some command glue for bringing up the account manager and the prefs dialog
This commit is contained in:
Родитель
5fb06f74bf
Коммит
85cd4233fc
|
@ -64,6 +64,15 @@ function GetNewMail()
|
|||
}
|
||||
}
|
||||
|
||||
function MsgAccountManager()
|
||||
{
|
||||
var appCore = FindMsgAppCore();
|
||||
if (appCore != null) {
|
||||
dump('Opening account manager..');
|
||||
appCore.AccountManager(window);
|
||||
}
|
||||
}
|
||||
|
||||
function LoadMessage(messageNode)
|
||||
{
|
||||
var uri = messageNode.getAttribute('id');
|
||||
|
@ -135,3 +144,18 @@ function SortThreadPane(column, sortKey)
|
|||
|
||||
|
||||
}
|
||||
|
||||
function MsgPreferences()
|
||||
{
|
||||
var prefsCore = XPAppCoresManager.Find("PrefsCore");
|
||||
if (!prefsCore) {
|
||||
prefsCore = new PrefsCore();
|
||||
if (prefsCore) {
|
||||
prefsCore.Init("PrefsCore");
|
||||
}
|
||||
}
|
||||
if (prefsCore) {
|
||||
prefsCore.ShowWindow(window);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче