From 051f9d7173e974629877c26ccac7d90a568de0f1 Mon Sep 17 00:00:00 2001 From: sbcrumb Date: Tue, 14 Oct 2025 16:16:05 -0400 Subject: [PATCH] fix: broken interface --- VERSION | 2 +- static/js/app.js | 50 +----------------------------------------------- 2 files changed, 2 insertions(+), 50 deletions(-) diff --git a/VERSION b/VERSION index 3e3c2f1..eca07e4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.1.1 +2.1.2 diff --git a/static/js/app.js b/static/js/app.js index 8228d0f..d51d1f2 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -828,7 +828,7 @@ function showEnhancedEditModal(mediaType, options, currentDateadded, currentSour
- @@ -846,8 +846,6 @@ function showEnhancedEditModal(mediaType, options, currentDateadded, currentSour modalBody.innerHTML = formHtml; - // Store options globally for dropdown sync - window.currentEditOptions = options; // Set current values if (currentDateadded && currentDateadded !== '-') { @@ -1055,52 +1053,6 @@ async function updateEpisodeDate(imdbId, season, episode, dateadded, source) { } } -// Source dropdown sync function -function handleSourceDropdownChange() { - const selectedSource = document.getElementById('edit-source').value; - const options = window.currentEditOptions; - - if (!options || !options.options) { - console.error('No options available for source sync'); - return; - } - - // Find the option that matches the selected source - const matchingOption = options.options.find(option => option.source === selectedSource); - - if (matchingOption) { - // Found matching option - select its radio button and update date - const optionIndex = options.options.indexOf(matchingOption); - const radioButton = document.querySelector(`input[name="edit-date-option"][value="${optionIndex}"]`); - - if (radioButton) { - radioButton.checked = true; - // Update the date field using the existing function - updateEditDateFromOption(optionIndex, matchingOption); - } - } else { - // No matching option found - show "not available" message - const dateInput = document.getElementById('edit-dateadded'); - if (dateInput) { - dateInput.value = ''; - - // Show toast notification - const sourceLabel = selectedSource.replace(/[_:]/g, ' ').replace(/\b\w/g, l => l.toUpperCase()); - showToast(`${sourceLabel} date not available for this item`, 'warning'); - } - - // Clear any selected radio buttons since this source isn't available - const radioButtons = document.querySelectorAll('input[name="edit-date-option"]'); - radioButtons.forEach(radio => radio.checked = false); - - // Add visual feedback to the date input - const dateInput = document.getElementById('edit-dateadded'); - if (dateInput) { - dateInput.placeholder = 'Date not available for this source'; - } - } -} - // Utility functions function debounce(func, wait) { let timeout;