mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 10:00:54 +00:00
fire off new account wizard when the button is pressed, and propagate the refresh parameter
This commit is contained in:
parent
2642a98f2e
commit
0df90cd541
@ -59,6 +59,27 @@ function onSave() {
|
||||
}
|
||||
}
|
||||
|
||||
function onNewAccount() {
|
||||
var result = { refresh: false };
|
||||
window.openDialog("chrome://messenger/content/AccountWizard.xul", "wizard", "chrome,modal", result);
|
||||
if (result.refresh) {
|
||||
refreshAccounts();
|
||||
|
||||
// propagate refresh if it's not already on
|
||||
// i.e. we'll never turn off refresh once it's on.
|
||||
window.arguments[0].refresh = true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// another temporary hack until the account manager
|
||||
// can refresh the account list itself.
|
||||
function refreshAccounts()
|
||||
{
|
||||
var tree = document.getElementById("accounttree");
|
||||
tree.setAttribute('ref', tree.getAttribute('ref'));
|
||||
}
|
||||
|
||||
function saveAccount(accountValues, account)
|
||||
{
|
||||
var identity = account.defaultIdentity;
|
||||
|
Loading…
Reference in New Issue
Block a user