mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Improve UX of ticket download settings
This commit is contained in:
@@ -251,7 +251,7 @@ var form_handlers = function (el) {
|
||||
update = function () {
|
||||
var enabled = dependency.prop('checked');
|
||||
dependent.prop('disabled', !enabled).parents('.form-group').toggleClass('disabled', !enabled);
|
||||
if (!enabled) {
|
||||
if (!enabled && !$(this).is('[data-checkbox-dependency-visual]')) {
|
||||
dependent.prop('checked', false);
|
||||
}
|
||||
};
|
||||
@@ -750,4 +750,4 @@ $(document).ready(function () {
|
||||
$('form[method=post]').filter(function () {
|
||||
return $(this).find("button:not([type=button]), input[type=submit]").length > 0;
|
||||
}).areYouSure( {'message': gettext('You have unsaved changes!')});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user