diff options
-rw-r--r-- | src/usr/local/www/interfaces.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/usr/local/www/interfaces.php b/src/usr/local/www/interfaces.php index 474ac7a..7ed1b72 100644 --- a/src/usr/local/www/interfaces.php +++ b/src/usr/local/www/interfaces.php @@ -3556,6 +3556,8 @@ events.push(function() { var sv = "<?=htmlspecialchars($pconfig['adv_dhcp_pt_values']);?>"; if (sv == "") { $("input[name=adv_dhcp_pt_values][value='SavedCfg']").prop('checked', true); + } else { + $("input[name=adv_dhcp_pt_values][value="+sv+"]").prop('checked', true); } // Set preset from value @@ -3616,7 +3618,7 @@ events.push(function() { }); // On click . . - $('[id=adv_dhcp_pt_values]').click(function () { + $('[name=adv_dhcp_pt_values]').click(function () { setPresets($('input[name=adv_dhcp_pt_values]:checked').val()); }); |