diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-06-20 16:27:18 +0200 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-06-20 16:27:18 +0200 |
commit | 56ddb90de1000c4ed8e95019805fa93d38b94231 (patch) | |
tree | d9110248a2c1c83506108309d528f47d7c07e476 /application/palemoon/base/content/newtab/page.js | |
parent | 856d0c991c097eff35ed098a1e30992c0f57165a (diff) | |
download | UXP-56ddb90de1000c4ed8e95019805fa93d38b94231.tar UXP-56ddb90de1000c4ed8e95019805fa93d38b94231.tar.gz UXP-56ddb90de1000c4ed8e95019805fa93d38b94231.tar.lz UXP-56ddb90de1000c4ed8e95019805fa93d38b94231.tar.xz UXP-56ddb90de1000c4ed8e95019805fa93d38b94231.zip |
Issue #517 Part 1: Fix newtab Search
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"); |