mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-20 04:23:26 +02:00
Fix: check on page load if radio button is checked
This commit is contained in:
@@ -35,6 +35,12 @@
|
|||||||
$('input[name="settings[{{ value.show_if[0] }}]"]').change(function () {
|
$('input[name="settings[{{ value.show_if[0] }}]"]').change(function () {
|
||||||
performChecks_{{ key }}(this);
|
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)
|
function performChecks_{{ key }}(el)
|
||||||
|
Reference in New Issue
Block a user