summaryrefslogtreecommitdiffstats
path: root/application/palemoon/base/content/newtab/page.js
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@gmail.com>2018-06-20 16:27:18 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-06-20 16:27:18 +0200
commit56ddb90de1000c4ed8e95019805fa93d38b94231 (patch)
treed9110248a2c1c83506108309d528f47d7c07e476 /application/palemoon/base/content/newtab/page.js
parent856d0c991c097eff35ed098a1e30992c0f57165a (diff)
downloadUXP-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.js7
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");