This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>NFOGuard - Database Management</title>
|
||||
<link rel="stylesheet" href="/static/css/styles.css?v=2.8.2-20241025">
|
||||
<link rel="stylesheet" href="/static/css/styles.css?v=2.8.2-20241026-table-fix">
|
||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
@@ -533,6 +533,6 @@
|
||||
<!-- Toast Notifications -->
|
||||
<div class="toast-container" id="toast-container"></div>
|
||||
|
||||
<script src="/static/js/app.js?v=2.8.2-20241026-admin-tools"></script>
|
||||
<script src="/static/js/app.js?v=2.8.2-20241026-airdate-fix"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -1047,19 +1047,24 @@ 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;
|
||||
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 {
|
||||
if (mediaType === 'movie') {
|
||||
|
||||
Reference in New Issue
Block a user