Moved "mailnews.start_page.url" from .js to .property, bug 55011, r=tao, sr=alecf.

This commit is contained in:
nhotta%netscape.com 2000-10-06 22:58:48 +00:00
parent e9436cb583
commit bcfd476569
6 changed files with 6 additions and 4 deletions

View File

@ -13,6 +13,6 @@ function setHomePageToDefaultPage(folderFieldId)
{
var homePageField = document.getElementById(folderFieldId);
var prefs = Components.classes["@mozilla.org/preferences;1"].getService(Components.interfaces.nsIPref);
var url = prefs.CopyDefaultCharPref("mailnews.start_page.url");
var url = prefs.getDefaultLocalizedUnicharPref("mailnews.start_page.url");
homePageField.value = url;
}

View File

@ -323,7 +323,7 @@ function loadStartPage() {
var startpageenabled= pref.GetBoolPref("mailnews.start_page.enabled");
if (startpageenabled) {
var startpage = pref.CopyCharPref("mailnews.start_page.url");
var startpage = pref.getLocalizedUnicharPref("mailnews.start_page.url");
if (startpage != "") {
window.frames["messagepane"].location = startpage;
dump("start message pane with: " + startpage + "\n");

View File

@ -111,6 +111,7 @@ read=Read
# mailnews.js
mailnews.start_page.url=http://www.mozilla.org/mailnews/start.html
messenger.throbber.url=http://www.mozilla.org/
compose.throbber.url=http://www.mozilla.org/
addressbook.throbber.url=http://www.mozilla.org/

View File

@ -360,7 +360,7 @@ pref("ldap_2.version", 3); /* Update kCurrentListVersion in include/di
pref("mailnews.confirm.moveFoldersToTrash", true);
pref("mailnews.remember_selected_message", true);
pref("mailnews.start_page.url", "http://www.mozilla.org/mailnews/start.html");
pref("mailnews.start_page.url", "chrome://messenger/locale/messenger.properties");
pref("mailnews.start_page.enabled", true);
/* default prefs for Mozilla 5.0 */

View File

@ -360,7 +360,7 @@ pref("ldap_2.version", 3); /* Update kCurrentListVersion in include/di
pref("mailnews.confirm.moveFoldersToTrash", true);
pref("mailnews.remember_selected_message", true);
pref("mailnews.start_page.url", "http://www.mozilla.org/mailnews/start.html");
pref("mailnews.start_page.url", "chrome://messenger/locale/messenger.properties");
pref("mailnews.start_page.enabled", true);
/* default prefs for Mozilla 5.0 */

View File

@ -152,6 +152,7 @@ nsPrefWindow.prototype =
(aPrefString == "wallet.Server") ||
(aPrefString == "intl.accept_languages") ||
(aPrefString == "intl.charset.default") ||
(aPrefString == "mailnews.start_page.url") ||
(aPrefString == "mailnews.view_default_charset") ||
(aPrefString == "mailnews.send_default_charset")) {
return pref.getLocalizedUnicharPref( aPrefString );