From eef931443d426e1a5a75352a75cd881d8223d979 Mon Sep 17 00:00:00 2001 From: Jared Dillard Date: Thu, 24 Sep 2015 11:47:56 -0500 Subject: Ticket #5204 a clean up pass of the jquery sections --- src/usr/local/www/system_advanced_admin.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/usr/local/www/system_advanced_admin.php') 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; // 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'); }); -- cgit v1.1