mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-05-27 10:44:33 +00:00
only show fields according to dropdown menu when entering form first tim (after enable checkbox was selected)
This commit is contained in:
parent
e5ddfe0906
commit
15a6c49922
@ -66,6 +66,7 @@
|
|||||||
$('#id_dynamicdns-enabled').change(function() {
|
$('#id_dynamicdns-enabled').change(function() {
|
||||||
if ($('#id_dynamicdns-enabled').prop('checked')) {
|
if ($('#id_dynamicdns-enabled').prop('checked')) {
|
||||||
show_all();
|
show_all();
|
||||||
|
configure_dropdown();
|
||||||
} else {
|
} else {
|
||||||
$('.form-group').hide();
|
$('.form-group').hide();
|
||||||
$('#id_dynamicdns-enabled').closest('.form-group').show();
|
$('#id_dynamicdns-enabled').closest('.form-group').show();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user