From 9373d43e96c10487330d87528801ab65d56dc7d5 Mon Sep 17 00:00:00 2001 From: Ruben Carlo Benante Date: Fri, 10 Jul 2026 23:24:12 -0300 Subject: [PATCH] target dropdown shows all columns; italicize current column (v1.9.1) --- Asset/js/recoreco-modal.js | 34 +++++++++++++++++++++++++++++ Controller/RecurrenceController.php | 10 ++++----- Plugin.php | 2 +- Template/recurrence/edit.php | 2 +- VERSION | 2 +- 5 files changed, 42 insertions(+), 8 deletions(-) diff --git a/Asset/js/recoreco-modal.js b/Asset/js/recoreco-modal.js index 4a800f1..d699a1c 100644 --- a/Asset/js/recoreco-modal.js +++ b/Asset/js/recoreco-modal.js @@ -78,6 +78,35 @@ if (invert) { invert.disabled = (trigger.value === "any"); } } + // Move-mode makes copies moot, so grey out "Link copies to the template" while it is checked + // (disabled -> it won't post, so the saved value is 0). + function applyMove() { + var move = document.querySelector('input[name="recoreco_move"]'); + var link = document.querySelector('input[name="recoreco_link_copies"]'); + if (!move || !link) { return; } + + link.disabled = move.checked; + var label = link.closest("label"); + if (label) { label.style.opacity = move.checked ? "0.5" : ""; } + } + + // Italicize the card's current column in the target/trigger dropdowns, so you can see where it + // sits right now. (