only show fields according to dropdown menu when entering form first tim (after enable checkbox was selected)

This commit is contained in:
Daniel Steglich 2015-03-07 00:03:00 +01:00
parent e5ddfe0906
commit 15a6c49922

View File

@ -66,6 +66,7 @@
$('#id_dynamicdns-enabled').change(function() {
if ($('#id_dynamicdns-enabled').prop('checked')) {
show_all();
configure_dropdown();
} else {
$('.form-group').hide();
$('#id_dynamicdns-enabled').closest('.form-group').show();