Mozilla/mozilla/calendar/resources/content/importDuplicatesDialog.js
mikep%oeone.com 8e1c4fb620 Adding in the ability to remember publishing preferences.
git-svn-id: svn://10.0.0.236/trunk@134261 18797224-902f-48f8-a5cc-f745e15eee43
2002-11-21 14:57:42 +00:00

44 lines
709 B
JavaScript

// Toggle the prompt property
//
function setPromptOnAdd(val) {
window.arguments[0].prompt = val;
}
// Toggle the discard duplicates property
//
function setDiscardDuplicates(val) {
window.arguments[0].discard = val;
}
// Toggle the cancelled property
//
function setCancelled(val) {
window.arguments[0].cancelled = val;
}
// Initialize the dialog controls
//
function loadDefaults() {
var cb = document.getElementById("auto-discard");
cb.setAttribute("selected", "true");
}
// Toggle the disabled attribute of the prompting checkbox
//
function togglePrompting(val) {
var cb = document.getElementById("prompt-on-add");
cb.setAttribute("disabled", val ? "false" : "true");
}