mirror of
https://github.com/pretix/pretix.git
synced 2026-05-04 15:04:03 +00:00
Allow selecting the same add-on multiple times (#1717)
This commit is contained in:
@@ -114,6 +114,15 @@ var form_handlers = function (el) {
|
||||
);
|
||||
});
|
||||
|
||||
el.find("input[data-exclusive-prefix]").each(function () {
|
||||
var $others = $("input[name^=" + $(this).attr("data-exclusive-prefix") + "]:not([name=" + $(this).attr("name") + "])");
|
||||
$(this).on('click change', function () {
|
||||
if ($(this).prop('checked')) {
|
||||
$others.prop('checked', false);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
el.find("input[name*=question], select[name*=question]").change(questions_toggle_dependent);
|
||||
questions_toggle_dependent();
|
||||
};
|
||||
|
||||
@@ -87,3 +87,12 @@
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
.addons {
|
||||
fieldset {
|
||||
margin-top: 20px;
|
||||
&:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
.product-row {
|
||||
border-top: 1px solid $table-border-color;
|
||||
.addons &:first-child {
|
||||
border-top: 2px solid $table-border-color;
|
||||
}
|
||||
.addons &:last-child {
|
||||
border-bottom: 2px solid $table-border-color;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user