Monotone-Parent: 5e4dd708dbc3cc9be9711790430cdb26f929e367

Monotone-Revision: 414eb272431ccbb22c9aaeb68900e2fb7c37bfe3

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-06-25T19:50:59
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-06-25 19:50:59 +00:00
parent a7312352de
commit 31f78e8eb0
2 changed files with 9 additions and 8 deletions

View File

@@ -50,8 +50,10 @@ function initPreferences() {
$("composeMessagesType").observe ("change", onComposeMessagesTypeChange);
alert (UserDefaults["ComposeMessagesType"]);
if (UserDefaults["ComposeMessagesType"] != "html") {
$("signature").style.display = 'inline';
$("signature").style.display = 'block';
$("signature").style.visibility = '';
$('cke_signature').style.display = 'none';
}
}
@@ -68,20 +70,18 @@ function onReplyPlacementListChange() {
}
function onComposeMessagesTypeChange () {
/* var textArea = $('signature');
var oEditor = CKeditorAPI.GetInstance('signature');
var textArea = $('signature');
var editor = $('cke_signature');
if ($("composeMessagesType").value == 0) {
textArea.style.display = 'inline';
textArea.style.display = 'block';
textArea.style.visibility = '';
editor.style.display = 'none';
textArea.value = oEditor.GetData();
}
else {
textArea.style.display = 'none';
editor.style.display = '';
oEditor.SetHTML(textArea.value);
}*/
editor.style.display = 'block';
}
}
document.observe("dom:loaded", initPreferences);