Advanced search work started
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
+10
-2
@@ -1677,8 +1677,16 @@ function showSearchResultsGrid(matches, searchTerm) {
|
||||
|
||||
// Handle Advanced Search button click
|
||||
function handleAdvancedSearch() {
|
||||
// Navigate to advanced search page
|
||||
window.location.href = '/quiz/advanced-search';
|
||||
// Get search text from input field
|
||||
const searchInput = document.getElementById('searchInput');
|
||||
const searchText = searchInput ? searchInput.value.trim() : '';
|
||||
|
||||
// Navigate to advanced search page with search query parameter
|
||||
if (searchText) {
|
||||
window.location.href = '/quiz/advanced-search?q=' + encodeURIComponent(searchText);
|
||||
} else {
|
||||
window.location.href = '/quiz/advanced-search';
|
||||
}
|
||||
}
|
||||
|
||||
// Set up search input event listeners
|
||||
|
||||
Reference in New Issue
Block a user