mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
Added signature/reply placement options
Monotone-Parent: c465e35fc5f42324c08780dae83f7d225dca6e6a Monotone-Revision: 1d1c945ea058db7070c9b83c4c2bb60689c52f92 Monotone-Author: crobert@inverse.ca Monotone-Date: 2008-09-28T19:49:17 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
/* -*- Mode: java; tab-width: 2; c-tab-always-indent: t; indent-tabs-mode: t; c-basic-offset: 2 -*- */
|
||||
|
||||
function savePreferences(sender) {
|
||||
$("signaturePlacementList").disabled=false;
|
||||
$("mainForm").submit();
|
||||
|
||||
return false;
|
||||
@@ -32,6 +33,19 @@ function initPreferences() {
|
||||
_setupEvents(true);
|
||||
if (typeof (initAdditionalPreferences) != "undefined")
|
||||
initAdditionalPreferences();
|
||||
$("replyPlacementList").observe("change", onReplyPlacementListChange);
|
||||
onReplyPlacementListChange();
|
||||
}
|
||||
|
||||
function onReplyPlacementListChange() {
|
||||
// above = 0
|
||||
if ($("replyPlacementList").value == 0) {
|
||||
$("signaturePlacementList").disabled=false;
|
||||
}
|
||||
else {
|
||||
$("signaturePlacementList").value=1;
|
||||
$("signaturePlacementList").disabled=true;
|
||||
}
|
||||
}
|
||||
|
||||
FastInit.addOnLoad(initPreferences);
|
||||
|
||||
Reference in New Issue
Block a user