Revision control

Copy as Markdown

Other Tools

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* import-globals-from am-prefs.js */
/* import-globals-from amUtils.js */
function onLoad() {
parent.onPanelLoaded("am-addressing.xhtml");
}
function onInit() {
onInitCompositionAndAddressing();
}
function onInitCompositionAndAddressing() {
LDAPenabling();
quoteEnabling();
}
function onEditDirectories() {
parent.gSubDialog.open(
);
}
function onPreInit() {}
function LDAPenabling() {
onCheckItem("identity.directoryServer", ["directories"]);
onCheckItem("editButton", ["directories"]);
}
function quoteEnabling() {
var placebox = document.getElementById("placeBox");
if (document.getElementById("identity.replyOnTop").value == "1") {
placebox.firstElementChild.removeAttribute("disabled");
placebox.lastElementChild.removeAttribute("disabled");
} else {
placebox.firstElementChild.setAttribute("disabled", "true");
placebox.lastElementChild.setAttribute("disabled", "true");
}
}
/**
* Open the Preferences dialog on the tab with Addressing options.
*/
function showGlobalAddressingPrefs() {
openPrefsFromAccountManager(
"paneCompose",
"compositionAddressingCategory",
null,
"addressing_pane"
);
}
/**
* Open the Preferences dialog on the tab with Composing options.
*/
function showGlobalComposingPrefs() {
openPrefsFromAccountManager(
"paneCompose",
null,
null,
"composing_messages_pane"
);
}