forked from CGM_Public/pretix_original
Item form: Fancy radio buttons for has_Variations and admission
This commit is contained in:
@@ -31,9 +31,9 @@ $(document).ready(function () {
|
||||
);
|
||||
|
||||
function toggleblock() {
|
||||
$("#new-quota-group").closest('fieldset').toggle(!$("#id_has_variations").prop('checked'));
|
||||
$("#new-quota-group").closest('fieldset').toggle(!$("[name=has_variations][value=on]").prop('checked'));
|
||||
}
|
||||
|
||||
$("#id_has_variations").change(toggleblock);
|
||||
$("[name=has_variations]").change(toggleblock);
|
||||
toggleblock();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user