diff --git a/frontend/js/search.js b/frontend/js/search.js index 27b1036..43f675e 100644 --- a/frontend/js/search.js +++ b/frontend/js/search.js @@ -1,6 +1,7 @@ /* ObsiGate — Search module */ import { state } from './state.js'; import { safeCreateIcons } from './utils.js'; +import { showLoading } from './viewer.js'; // --------------------------------------------------------------------------- // Search History Service (localStorage, LIFO, max 50, dedup) // --------------------------------------------------------------------------- diff --git a/frontend/js/ui.js b/frontend/js/ui.js index 1543635..4f31fac 100644 --- a/frontend/js/ui.js +++ b/frontend/js/ui.js @@ -411,7 +411,7 @@ export function initMobile() { }); } -function closeMobileSidebar() { +export function closeMobileSidebar() { const sidebar = document.getElementById("sidebar"); const overlay = document.getElementById("sidebar-overlay"); if (sidebar) sidebar.classList.remove("mobile-open"); diff --git a/frontend/js/viewer.js b/frontend/js/viewer.js index dc846d1..4a631c9 100644 --- a/frontend/js/viewer.js +++ b/frontend/js/viewer.js @@ -1034,7 +1034,7 @@ async function loadSavedSearches() { } catch (err) { /* silently ignore */ } } -function showLoading() { +export function showLoading() { const area = document.getElementById("content-area"); area.innerHTML = `