forked from LiveCarta/LiveCartaWP
LAW-7726
This commit is contained in:
@@ -401,7 +401,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
|
||||
if (event.target?.closest('#header-search-btn')) {
|
||||
let searchData = document.getElementById('header-search').value.trim();
|
||||
top.location = appUrl + '/catalog?tab=books-tab&search=' + searchData;
|
||||
top.location = appUrl + '/catalog?tab=materials&search=' + searchData;
|
||||
}
|
||||
|
||||
if (!event.target.closest('.mobile-menu.open')) {
|
||||
@@ -412,7 +412,7 @@ height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
|
||||
document.querySelector('#header-search').addEventListener('keyup', function(e){
|
||||
if (e.key === "Enter") {
|
||||
let searchData = e.target.value.trim();
|
||||
top.location = appUrl + '/catalog?tab=books-tab&search=' + searchData;
|
||||
top.location = appUrl + '/catalog?tab=materials&search=' + searchData;
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user