From 56ddb90de1000c4ed8e95019805fa93d38b94231 Mon Sep 17 00:00:00 2001 From: wolfbeast Date: Wed, 20 Jun 2018 16:27:18 +0200 Subject: Issue #517 Part 1: Fix newtab Search --- application/palemoon/base/content/newtab/page.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'application/palemoon/base/content/newtab/page.js') 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"); -- cgit v1.2.3