mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Settings form: Fix explicit unlocking, fix HTML button type
This commit is contained in:
@@ -45,7 +45,8 @@ class PropagatedNode(Node):
|
||||
<div class="propagated-settings-box locked panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<input type="hidden" name="_settings_ignore" value="{fnames}">
|
||||
<button class="btn btn-default pull-right btn-xs" name="decouple" value="{fnames}" data-action="unlink">
|
||||
<input type="hidden" name="decouple" value="">
|
||||
<button type="button" class="btn btn-default pull-right btn-xs" value="{fnames}" data-action="unlink">
|
||||
<span class="fa fa-unlock"></span> {text_unlink}
|
||||
</button>
|
||||
<h4 class="panel-title">
|
||||
|
||||
@@ -765,6 +765,7 @@ $(function () {
|
||||
|
||||
$(".propagated-settings-box button[data-action=unlink]").click(function (ev) {
|
||||
var $box = $(this).closest(".propagated-settings-box");
|
||||
$box.find("input[name=decouple]").val($(this).val());
|
||||
$box.find("[data-propagated-locked]").prop("readonly", false);
|
||||
$box.removeClass("locked").addClass("unlocked");
|
||||
ev.preventDefault();
|
||||
|
||||
Reference in New Issue
Block a user