Revision 49d3b157
Added by NOYB NOYB over 9 years ago
src/usr/local/www/services_unbound.php | ||
---|---|---|
378 | 378 |
'fa-cog' |
379 | 379 |
); |
380 | 380 |
|
381 |
$btnadv->addClass('btn-info btn-sm'); |
|
381 |
$btnadv->setAttribute('type','button')->addClass('btn-info btn-sm');
|
|
382 | 382 |
|
383 | 383 |
$section->addInput(new Form_StaticText( |
384 | 384 |
'Display Custom Options', |
... | ... | |
437 | 437 |
hideInput('custom_options', hide || !showadvcustom); |
438 | 438 |
} |
439 | 439 |
|
440 |
// Make the 'additional options' button a plain button, not a submit button |
|
441 |
$("#btnadvcustom").prop('type','button'); |
|
442 |
|
|
443 | 440 |
// Un-hide additional controls |
444 | 441 |
$('#btnadvcustom').click(function(event) { |
445 | 442 |
show_advcustom(); |
Also available in: Unified diff
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.