mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-07 22:38:51 +00:00
Monotone-Parent: 414eb272431ccbb22c9aaeb68900e2fb7c37bfe3
Monotone-Revision: ba6d913f4f8a20f6769ab7fd45973e1fbdee1e68 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-06-26T13:17:21 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -50,12 +50,10 @@ function initPreferences() {
|
||||
|
||||
$("composeMessagesType").observe ("change", onComposeMessagesTypeChange);
|
||||
|
||||
alert (UserDefaults["ComposeMessagesType"]);
|
||||
if (UserDefaults["ComposeMessagesType"] != "html") {
|
||||
$("signature").style.display = 'block';
|
||||
$("signature").style.visibility = '';
|
||||
$('cke_signature').style.display = 'none';
|
||||
}
|
||||
if (!UserDefaults["ComposeMessagesType"])
|
||||
UserDefaults["ComposeMessagesType"] = "text";
|
||||
|
||||
onComposeMessagesTypeChange ();
|
||||
}
|
||||
|
||||
function onReplyPlacementListChange() {
|
||||
@@ -72,6 +70,11 @@ function onReplyPlacementListChange() {
|
||||
function onComposeMessagesTypeChange () {
|
||||
var textArea = $('signature');
|
||||
var editor = $('cke_signature');
|
||||
|
||||
if (!editor) {
|
||||
setTimeout ("onComposeMessagesTypeChange ()", 10);
|
||||
return;
|
||||
}
|
||||
|
||||
if ($("composeMessagesType").value == 0) {
|
||||
textArea.style.display = 'block';
|
||||
|
||||
Reference in New Issue
Block a user