summaryrefslogtreecommitdiffstats
path: root/src/usr/local/www/system_advanced_admin.php
diff options
context:
space:
mode:
authorJared Dillard <jdillard@netgate.com>2015-09-24 11:47:56 -0500
committerJared Dillard <jdillard@netgate.com>2015-09-24 11:48:03 -0500
commiteef931443d426e1a5a75352a75cd881d8223d979 (patch)
tree176dba700001cd0ccfca56e76bf6ac20fdb30945 /src/usr/local/www/system_advanced_admin.php
parentd94da29844316954348a3f7c97fff93de15051f9 (diff)
downloadpfsense-eef931443d426e1a5a75352a75cd881d8223d979.zip
pfsense-eef931443d426e1a5a75352a75cd881d8223d979.tar.gz
Ticket #5204 a clean up pass of the jquery sections
Diffstat (limited to 'src/usr/local/www/system_advanced_admin.php')
-rw-r--r--src/usr/local/www/system_advanced_admin.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/usr/local/www/system_advanced_admin.php b/src/usr/local/www/system_advanced_admin.php
index d6cad3e..edc6334 100644
--- a/src/usr/local/www/system_advanced_admin.php
+++ b/src/usr/local/www/system_advanced_admin.php
@@ -527,6 +527,8 @@ print $form;
//<![CDATA[
events.push(function(){
+ //---------- "Standard" show/hide functions ---------------------------------------------------
+
// Hides the <div> in which the specified input element lives so that the input, its label and help text are hidden
function hideInput(id, hide) {
if(hide)
@@ -535,10 +537,12 @@ events.push(function(){
$('#' + id).parent().parent('div').removeClass('hidden');
}
- // On page load . .
+ // ---------- On initial page load ------------------------------------------------------------
+
hideInput('ssl-certificate', $('input[name=webguiproto]:checked').val() == 'http');
- // On click . .
+ // ---------- Click checkbox handlers ---------------------------------------------------------
+
$('[id=webguiproto]').click(function () {
hideInput('ssl-certificate', $('input[name=webguiproto]:checked').val() == 'http');
});
OpenPOWER on IntegriCloud