diff --git a/Asset/js/recoreco-modal.js b/Asset/js/recoreco-modal.js index d699a1c..0cec9db 100644 --- a/Asset/js/recoreco-modal.js +++ b/Asset/js/recoreco-modal.js @@ -75,7 +75,13 @@ trigger.options[i].disabled = isTarget; } if (trigger.value === target.value) { trigger.value = "any"; } - if (invert) { invert.disabled = (trigger.value === "any"); } + + if (invert) { + var invertDisabled = (trigger.value === "any"); + invert.disabled = invertDisabled; + var invertLabel = invert.closest("label"); + if (invertLabel) { invertLabel.style.opacity = invertDisabled ? "0.5" : ""; } + } } // Move-mode makes copies moot, so grey out "Link copies to the template" while it is checked