Revision 1f6a8b6e
Added by NOYB NOYB over 9 years ago
src/usr/local/www/services_unbound.php | ||
---|---|---|
406 | 406 |
var text; |
407 | 407 |
// On page load decide the initial state based on the data. |
408 | 408 |
if (ispageload) { |
409 |
var customoptions = "<?=$customoptions?>"; |
|
410 |
if (customoptions) { |
|
411 |
showadvcustom = true; |
|
412 |
} else { |
|
413 |
showadvcustom = false; |
|
414 |
} |
|
409 |
showadvcustom = "<?=$customoptions?>"; |
|
415 | 410 |
} else { |
416 | 411 |
// It was a click, swap the state. |
417 | 412 |
showadvcustom = !showadvcustom; |
Also available in: Unified diff
Much cleaner like this.