mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Fix the 'data-checkbox-dependency-visual' attribute (#3720)
This commit is contained in:
@@ -328,7 +328,7 @@ var form_handlers = function (el) {
|
|||||||
update = function () {
|
update = function () {
|
||||||
var enabled = dependency.prop('checked');
|
var enabled = dependency.prop('checked');
|
||||||
dependent.prop('disabled', !enabled).closest('.form-group, .form-field-boundary').toggleClass('disabled', !enabled);
|
dependent.prop('disabled', !enabled).closest('.form-group, .form-field-boundary').toggleClass('disabled', !enabled);
|
||||||
if (!enabled && !$(this).is('[data-checkbox-dependency-visual]')) {
|
if (!enabled && !dependent.is('[data-checkbox-dependency-visual]')) {
|
||||||
dependent.prop('checked', false);
|
dependent.prop('checked', false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user