Skip to content

Commit a97abcc

Browse files
authored
WH-3454 Add back button
1 parent 5b930a0 commit a97abcc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

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

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ document.addEventListener('DOMContentLoaded', function () {
55
const searchContainer = document.querySelector('.wh_search_input');
66
const topMenuContainer = document.querySelector('.wh_top_menu_and_indexterms_link');
77

8+
// creeaza butonul
9+
const newButton = document.createElement("button");
10+
newButton.textContent = "";
11+
newButton.type = "button";
12+
13+
// seteaza stilurile
14+
newButton.style.width = "150px";
15+
newButton.style.display = "none";
16+
17+
// adauga în formular
18+
searchForm.appendChild(newButton);
19+
820
function showSearch() {
921
if (!searchIcon || !searchForm || !searchContainer || !topMenuContainer) return;
1022

0 commit comments

Comments
 (0)