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. (