diff options
author | NOYB <Al_Stu@Frontier.com> | 2016-03-19 00:14:27 -0700 |
---|---|---|
committer | NOYB <Al_Stu@Frontier.com> | 2016-03-19 00:14:27 -0700 |
commit | 49d3b1576616749d02dcb2a8e9142ef85bb4012a (patch) | |
tree | c81720e7e16dcf87ad58d20ae87a4c68c1dd9d2c /src/usr/local/www/services_unbound.php | |
parent | cdac78f61525f856287a6bb184411775956c2602 (diff) | |
download | pfsense-49d3b1576616749d02dcb2a8e9142ef85bb4012a.zip pfsense-49d3b1576616749d02dcb2a8e9142ef85bb4012a.tar.gz |
Services / DNS Resolver / General Settings
Static should be static.
Elements that don't need to be dynamic should be static.
More robust than depending on client-side processing to set them.
Diffstat (limited to 'src/usr/local/www/services_unbound.php')
-rw-r--r-- | src/usr/local/www/services_unbound.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/usr/local/www/services_unbound.php b/src/usr/local/www/services_unbound.php index c44940d..bf1231f 100644 --- a/src/usr/local/www/services_unbound.php +++ b/src/usr/local/www/services_unbound.php @@ -378,7 +378,7 @@ $btnadv = new Form_Button( 'fa-cog' ); -$btnadv->addClass('btn-info btn-sm'); +$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm'); $section->addInput(new Form_StaticText( 'Display Custom Options', @@ -437,9 +437,6 @@ events.push(function() { hideInput('custom_options', hide || !showadvcustom); } - // Make the 'additional options' button a plain button, not a submit button - $("#btnadvcustom").prop('type','button'); - // Un-hide additional controls $('#btnadvcustom').click(function(event) { show_advcustom(); |