diff --git a/resources/views/layouts/topbar.blade.php b/resources/views/layouts/topbar.blade.php index 155b3b179..7a1efe94b 100644 --- a/resources/views/layouts/topbar.blade.php +++ b/resources/views/layouts/topbar.blade.php @@ -22,7 +22,7 @@
- +
@@ -50,7 +50,7 @@
- +
diff --git a/resources/views/scripts/global.blade.php b/resources/views/scripts/global.blade.php index 64db90c95..c98879116 100644 --- a/resources/views/scripts/global.blade.php +++ b/resources/views/scripts/global.blade.php @@ -81,7 +81,7 @@ function showResults(boolean, html = null){ // Start search when typing in search bar with a 200ms delay var timer = null - document.querySelectorAll('.search-input').forEach((input) => { + document.querySelectorAll('.user-search').forEach((input) => { input.addEventListener('keyup', function(){ showSpinner(true) clearTimeout(timer); @@ -95,7 +95,7 @@ function showResults(boolean, html = null){ userSearchFormDesktop.addEventListener('submit', function(e){ e.preventDefault(); - var query = parseInt(document.querySelector('.search-input').value); + var query = parseInt(document.querySelector('.user-search').value); if(Number.isInteger(query)){ location.assign("{{ route('user.show', '') }}/" + query); } @@ -110,7 +110,7 @@ function showResults(boolean, html = null){ e.preventDefault() var query = null - document.querySelectorAll('.search-input').forEach((el) => { + document.querySelectorAll('.user-search').forEach((el) => { if(el.value != '') query = el.value });