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
This commit is contained in:
scott%scott-macgregor.org
2004-06-11 22:57:42 +00:00
parent c0bb8d518d
commit 7e1037effa

View File

@@ -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) {}
}