Bug 1509977 - Follow-up: Fix copy/paste errors found by lint in disabled code. rs=bustage-fix DONTBUILD
authorJorg K <jorgk@jorgk.com>
Sat, 01 Dec 2018 00:02:46 +0100
changeset 33827 3bb8dc6872e1cb9abcc3465b2c312e60e01af1c6
parent 33826 58068a9cedef38f2689291dc7b63476df24f6bb9
child 33828 debcebde19f182adc5ab07626e582b47c52d313f
push id388
push userclokep@gmail.com
push dateMon, 28 Jan 2019 20:54:56 +0000
reviewersbustage-fix
bugs1509977
Bug 1509977 - Follow-up: Fix copy/paste errors found by lint in disabled code. rs=bustage-fix DONTBUILD
mail/components/preferences/advanced.js
--- a/mail/components/preferences/advanced.js
+++ b/mail/components/preferences/advanced.js
@@ -568,22 +568,22 @@ var gAdvancedPane = {
       menuitem.setAttribute("value", code);
       menuitem.setAttribute("label", name);
       fragment.appendChild(menuitem);
     }
 
     // Add an option to search for more languages if downloading is supported.
     if (Services.prefs.getBoolPref("intl.multilingual.downloadEnabled")) {
       let menuitem = document.createXULElement("menuitem");
-      menuitem.id = "defaultBrowserLanguageSearch";
+      menuitem.id = "defaultMessengerLanguageSearch";
       menuitem.setAttribute(
         "label", await document.l10n.formatValue("messenger-languages-search"));
       menuitem.setAttribute("value", "search");
       menuitem.addEventListener("command", () => {
-        gMainPane.showBrowserLanguages({search: true});
+        gAdvancedPane.showMessengerLanguages({search: true});
       });
       fragment.appendChild(menuitem);
     }
 
     let menulist = document.getElementById("defaultMessengerLanguage");
     let menupopup = menulist.querySelector("menupopup");
     menupopup.textContent = "";
     menupopup.appendChild(fragment);