fixing rolodex and search
This commit is contained in:
@@ -443,7 +443,7 @@ function initializeAdvancedSearch() {
|
||||
|
||||
async function loadSearchFacets() {
|
||||
try {
|
||||
const response = await fetch('/api/search/facets');
|
||||
const response = await window.http.wrappedFetch('/api/search/facets');
|
||||
if (!response.ok) throw new Error('Failed to load search facets');
|
||||
|
||||
facetsData = await response.json();
|
||||
@@ -576,7 +576,7 @@ function setupKeyboardShortcuts() {
|
||||
|
||||
async function loadSearchSuggestions(query) {
|
||||
try {
|
||||
const response = await fetch(`/api/search/suggestions?q=${encodeURIComponent(query)}&limit=10`);
|
||||
const response = await window.http.wrappedFetch(`/api/search/suggestions?q=${encodeURIComponent(query)}&limit=10`);
|
||||
if (!response.ok) throw new Error('Failed to load suggestions');
|
||||
|
||||
const data = await response.json();
|
||||
@@ -631,11 +631,8 @@ async function performSearch(offset = 0) {
|
||||
currentSearchCriteria = criteria;
|
||||
|
||||
try {
|
||||
const response = await fetch('/api/search/advanced', {
|
||||
const response = await window.http.wrappedFetch('/api/search/advanced', {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/json'
|
||||
},
|
||||
body: JSON.stringify(criteria)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user