diff --git a/mozilla/mail/components/preferences/content/display.js b/mozilla/mail/components/preferences/content/display.js index 04cbf5ee194..561303439e1 100644 --- a/mozilla/mail/components/preferences/content/display.js +++ b/mozilla/mail/components/preferences/content/display.js @@ -72,7 +72,19 @@ var gDisplayPane = { fontOptionsDialog: function() { - document.documentElement.openSubDialog("chrome://messenger/content/preferences/fonts.xul", - "", null); + document.documentElement.openSubDialog("chrome://messenger/content/preferences/fonts.xul", "", null); }, + + mCharsetMenuInitialized: false, + readDefaultCharset: function() + { + if (!this.mCharsetMenuInitialized) + { + var os = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService); + os.notifyObservers(null, "charsetmenu-selected", "mailedit"); + this.mCharsetMenuInitialized = true; + } + return undefined; + }, + }; diff --git a/mozilla/mail/components/preferences/content/display.xul b/mozilla/mail/components/preferences/content/display.xul index 3768d05368f..55cb5c2905e 100644 --- a/mozilla/mail/components/preferences/content/display.xul +++ b/mozilla/mail/components/preferences/content/display.xul @@ -226,9 +226,9 @@