From 7e1037effa743a46600e3562b1574fb7919d13bb Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Fri, 11 Jun 2004 22:57:42 +0000 Subject: [PATCH] Bug #246414 --> Drafts & Templates don't remember background and font colors git-svn-id: svn://10.0.0.236/trunk@157807 18797224-902f-48f8-a5cc-f745e15eee43 --- .../mail/components/compose/content/MsgComposeCommands.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mozilla/mail/components/compose/content/MsgComposeCommands.js b/mozilla/mail/components/compose/content/MsgComposeCommands.js index d20f8effab3..6ff5a3e6266 100644 --- a/mozilla/mail/components/compose/content/MsgComposeCommands.js +++ b/mozilla/mail/components/compose/content/MsgComposeCommands.js @@ -3238,17 +3238,23 @@ function loadHTMLMsgPrefs() var bodyElement = GetBodyElement(); try { textColor = pref.getCharPref("msgcompose.text_color"); + if (!bodyElement.getAttribute("text")) + { bodyElement.setAttribute("text", textColor); gDefaultTextColor = textColor; document.getElementById("cmd_fontColor").setAttribute("state", textColor); onFontColorChange(); + } } catch (e) {} try { bgColor = pref.getCharPref("msgcompose.background_color"); + if (!bodyElement.getAttribute("bgcolor")) + { bodyElement.setAttribute("bgcolor", bgColor); gDefaultBackgroundColor = bgColor; document.getElementById("cmd_backgroundColor").setAttribute("state", bgColor); onBackgroundColorChange(); + } } catch (e) {} }