forked from CGM_Public/pretix_original
Hide quota options when creating a product with variations
This commit is contained in:
@@ -26,4 +26,11 @@ $(document).ready(function () {
|
||||
hideDeselected(true);
|
||||
}
|
||||
);
|
||||
|
||||
function toggleblock() {
|
||||
$("#new-quota-group").closest('fieldset').toggle(!$("#id_has_variations").prop('checked'));
|
||||
}
|
||||
|
||||
$("#id_has_variations").change(toggleblock);
|
||||
toggleblock();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user