From d06eb85619cc20a3ff5e8afeb7c24c32fa06df80 Mon Sep 17 00:00:00 2001 From: Jerry Date: Thu, 11 Apr 2024 13:29:28 +0200 Subject: [PATCH] LAW-7726 --- htdocs/wp-content/themes/lawcarta/assets/js/ui.js | 8 ++++---- htdocs/wp-content/themes/lawcarta/header.php | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/htdocs/wp-content/themes/lawcarta/assets/js/ui.js b/htdocs/wp-content/themes/lawcarta/assets/js/ui.js index df3ebfe..c1e4e9d 100644 --- a/htdocs/wp-content/themes/lawcarta/assets/js/ui.js +++ b/htdocs/wp-content/themes/lawcarta/assets/js/ui.js @@ -73,7 +73,7 @@ window.addEventListener('DOMContentLoaded', function(){ catalogSearchBtn.addEventListener('click', function(){ let searchText = catalogSearchInput.value; - top.location = 'https://app.livecarta.com/catalog?tab=books-tab&search=' + searchText; + top.location = 'https://app.livecarta.com/catalog?tab=materials&search=' + searchText; }) catalogSearchClear.addEventListener('click', function(){ @@ -83,7 +83,7 @@ window.addEventListener('DOMContentLoaded', function(){ catalogSearchInput.addEventListener('keyup', function(e){ if (e.keyCode === 13) { let searchText = catalogSearchInput.value; - top.location = 'https://app.livecarta.com/catalog?tab=books-tab&search=' + searchText; + top.location = 'https://app.livecarta.com/catalog?tab=materials&search=' + searchText; } }) } @@ -91,7 +91,7 @@ window.addEventListener('DOMContentLoaded', function(){ document.addEventListener('click', function(e){ if (e.target.classList && e.target.closest('.catalogSearchBtn')) { let searchText = e.target.closest('.input-flex').querySelector('.catalogSearchInput').value; - top.location = 'https://app.livecarta.com/catalog?tab=books-tab&search=' + searchText; + top.location = 'https://app.livecarta.com/catalog?tab=materials&search=' + searchText; } if (e.target.classList && e.target.closest('.catalogSearchClear')) { e.target.closest('.input-flex').querySelector('.catalogSearchInput').value = ''; @@ -101,7 +101,7 @@ window.addEventListener('DOMContentLoaded', function(){ document.addEventListener('keyup', function(e){ if (e.keyCode === 13 && e.target.classList.contains('catalogSearchInput')) { let searchText = e.target.value; - top.location = 'https://app.livecarta.com/catalog?tab=books-tab&search=' + searchText; + top.location = 'https://app.livecarta.com/catalog?tab=materials&search=' + searchText; } }) diff --git a/htdocs/wp-content/themes/lawcarta/header.php b/htdocs/wp-content/themes/lawcarta/header.php index afb81e7..e54f9d4 100644 --- a/htdocs/wp-content/themes/lawcarta/header.php +++ b/htdocs/wp-content/themes/lawcarta/header.php @@ -401,7 +401,7 @@ height="0" width="0" style="display:none;visibility:hidden"> 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"> 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; } }) });