Fix saving of coupled settings

This commit is contained in:
Raphael Michel
2021-05-06 18:10:33 +02:00
parent 7f0a6d08cf
commit 23a9ce30d3

View File

@@ -705,12 +705,12 @@ $(function () {
);
});
$(".propagated-settings-box").find("input, textarea, select").not("[disabled]")
.attr("data-propagated-locked", "true").prop("disabled", true);
$(".propagated-settings-box").find("input, textarea, select").not("[readonly]")
.attr("data-propagated-locked", "true").prop("readonly", true);
$(".propagated-settings-box button[data-action=unlink]").click(function (ev) {
var $box = $(this).closest(".propagated-settings-box");
$box.find("[data-propagated-locked]").prop("disabled", false);
$box.find("[data-propagated-locked]").prop("readonly", false);
$box.removeClass("locked").addClass("unlocked");
ev.preventDefault();
return true;