forked from CGM_Public/pretix_original
Update src/pretix/static/pretixcontrol/js/ui/main.js
Co-authored-by: Mira <weller@rami.io>
This commit is contained in:
co-authored by
Mira
parent
fe8e8fbbb9
commit
ea90ed008b
@@ -377,7 +377,8 @@ var form_handlers = function (el) {
|
||||
var dependent = $(this),
|
||||
dependency = findDependency($(this).attr("data-display-dependency"), this),
|
||||
update = function (ev) {
|
||||
var enabled = dependency.attr('disabled') ? false : dependency.toArray().some(function(d) {
|
||||
var enabled = dependency.toArray().some(function(d) {
|
||||
if (dependency.attr('disabled')) return false;
|
||||
if (d.type === 'checkbox' || d.type === 'radio') {
|
||||
return d.checked;
|
||||
} else if (d.type === 'select-one') {
|
||||
|
||||
Reference in New Issue
Block a user