Skip to content

Commit 5b930a0

Browse files
authored
WH-3454 Remove dummy button
1 parent 7bb415f commit 5b930a0

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

publishing/webhelpBlogTemplate/resources/js/search-nav.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,10 @@
11
document.addEventListener('DOMContentLoaded', function () {
2-
// console.log("test");
3-
42
const searchIcon = document.querySelector('.icn_qSearch');
53
const closeSearchIcon = document.querySelector('.icn_qSearch_remove');
64
const searchForm = document.getElementById('searchForm');
75
const searchContainer = document.querySelector('.wh_search_input');
86
const topMenuContainer = document.querySelector('.wh_top_menu_and_indexterms_link');
9-
10-
// creeaza butonul
11-
const newButton = document.createElement("button");
12-
newButton.textContent = "";
13-
newButton.type = "button";
147

15-
// seteaza stilurile
16-
newButton.style.width = "150px";
17-
newButton.style.display = "none";
18-
19-
// adauga în formular
20-
searchForm.appendChild(newButton);
21-
22-
238
function showSearch() {
249
if (!searchIcon || !searchForm || !searchContainer || !topMenuContainer) return;
2510

0 commit comments

Comments
 (0)