mirror of
https://github.com/slawkens/myaac.git
synced 2025-06-17 18:24:33 +02:00
Fix: check on page load if radio button is checked
This commit is contained in:
parent
c7c8ff266b
commit
1ea9a76ea9
@ -35,6 +35,12 @@
|
||||
$('input[name="settings[{{ value.show_if[0] }}]"]').change(function () {
|
||||
performChecks_{{ key }}(this);
|
||||
});
|
||||
|
||||
{% if settings[value.show_if[0]]['type'] == 'boolean' %}
|
||||
performChecks_{{ key }}('input[name="settings[{{ value.show_if[0] }}]"]:checked');
|
||||
{% else %}
|
||||
performChecks_{{ key }}('input[name="settings[{{ value.show_if[0] }}]"]');
|
||||
{% endif %}
|
||||
});
|
||||
|
||||
function performChecks_{{ key }}(el)
|
||||
|
Loading…
x
Reference in New Issue
Block a user