From 4516a80208279d1517a5bee2cf37b5bae20b0959 Mon Sep 17 00:00:00 2001 From: SBCrumb Date: Sun, 26 Oct 2025 11:45:46 -0400 Subject: [PATCH] web: debugging --- nfoguard-web/static/css/styles.css | 3 ++- nfoguard-web/static/index.html | 4 ++-- nfoguard-web/static/js/app.js | 17 +++++++++++------ 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/nfoguard-web/static/css/styles.css b/nfoguard-web/static/css/styles.css index 79e36fb..0c06736 100644 --- a/nfoguard-web/static/css/styles.css +++ b/nfoguard-web/static/css/styles.css @@ -950,7 +950,8 @@ body { font-style: italic; } -.table-container { +.query-results .table-container, +.admin-results .table-container { max-height: 400px; overflow-y: auto; border: 1px solid var(--border-color); diff --git a/nfoguard-web/static/index.html b/nfoguard-web/static/index.html index 365a6fb..33ee3c1 100644 --- a/nfoguard-web/static/index.html +++ b/nfoguard-web/static/index.html @@ -4,7 +4,7 @@ NFOGuard - Database Management - + @@ -533,6 +533,6 @@
- + \ No newline at end of file diff --git a/nfoguard-web/static/js/app.js b/nfoguard-web/static/js/app.js index fbb9535..2b08304 100644 --- a/nfoguard-web/static/js/app.js +++ b/nfoguard-web/static/js/app.js @@ -1047,18 +1047,23 @@ async function handleEnhancedEditSubmit(event) { const dateadded = document.getElementById('edit-dateadded').value; const source = document.getElementById('edit-source').value; - if (!dateadded) { + if (!dateadded && source !== 'airdate') { showToast('Please enter a date', 'warning'); return; } // Convert datetime-local to ISO string with error handling let isoDateadded = null; - try { - isoDateadded = new Date(dateadded).toISOString(); - } catch (e) { - showToast('Invalid date format', 'error'); - return; + if (dateadded) { + try { + isoDateadded = new Date(dateadded).toISOString(); + } catch (e) { + showToast('Invalid date format', 'error'); + return; + } + } else if (source === 'airdate') { + // For airdate source, let the backend handle the date conversion + isoDateadded = null; } try {