forked from CGM_Public/pretix_original
Presale: fix auto-unchecked button-checkboxes (#3968)
This commit is contained in:
committed by
GitHub
parent
a3ce3b9af3
commit
3e2c12cdb0
@@ -153,7 +153,7 @@ var form_handlers = function (el) {
|
|||||||
var $others = $("input[name^=" + $(this).attr("data-exclusive-prefix") + "]:not([name=" + $(this).attr("name") + "])");
|
var $others = $("input[name^=" + $(this).attr("data-exclusive-prefix") + "]:not([name=" + $(this).attr("name") + "])");
|
||||||
$(this).on('click change', function () {
|
$(this).on('click change', function () {
|
||||||
if ($(this).prop('checked')) {
|
if ($(this).prop('checked')) {
|
||||||
$others.prop('checked', false);
|
$others.prop('checked', false).trigger('change');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user