forked from CGM_Public/pretix_original
Fix saving of coupled settings
This commit is contained in:
@@ -705,12 +705,12 @@ $(function () {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".propagated-settings-box").find("input, textarea, select").not("[disabled]")
|
$(".propagated-settings-box").find("input, textarea, select").not("[readonly]")
|
||||||
.attr("data-propagated-locked", "true").prop("disabled", true);
|
.attr("data-propagated-locked", "true").prop("readonly", true);
|
||||||
|
|
||||||
$(".propagated-settings-box button[data-action=unlink]").click(function (ev) {
|
$(".propagated-settings-box button[data-action=unlink]").click(function (ev) {
|
||||||
var $box = $(this).closest(".propagated-settings-box");
|
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");
|
$box.removeClass("locked").addClass("unlocked");
|
||||||
ev.preventDefault();
|
ev.preventDefault();
|
||||||
return true;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user