diff options
Diffstat (limited to 'application/palemoon/base/content/newtab/page.js')
-rw-r--r-- | application/palemoon/base/content/newtab/page.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/application/palemoon/base/content/newtab/page.js b/application/palemoon/base/content/newtab/page.js index 66a92dc5d..4b7bc1b1c 100644 --- a/application/palemoon/base/content/newtab/page.js +++ b/application/palemoon/base/content/newtab/page.js @@ -116,16 +116,13 @@ var gPage = { // Set submit button label for when CSS background are disabled (e.g. // high contrast mode). - document.getElementById("newtab-search-submit").value = + document.getElementById("searchSubmit").value = document.body.getAttribute("dir") == "ltr" ? "\u25B6" : "\u25C0"; if (Services.prefs.getBoolPref("browser.newtabpage.compact")) { document.body.classList.add("compact"); } - // Initialize search. - gSearch.init(); - if (document.hidden) { addEventListener("visibilitychange", this); } else { @@ -151,7 +148,7 @@ var gPage = { */ _updateAttributes: function Page_updateAttributes(aValue) { // Set the nodes' states. - let nodeSelector = "#newtab-grid, #newtab-search-container"; + let nodeSelector = "#newtab-grid, #searchContainer"; for (let node of document.querySelectorAll(nodeSelector)) { if (aValue) node.removeAttribute("page-disabled"); |