Hide quota options when creating a product with variations

This commit is contained in:
Raphael Michel
2017-07-31 13:52:50 +02:00
parent b1b49758b1
commit 86f17094bb
2 changed files with 8 additions and 1 deletions

View File

@@ -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();
});