From 96c18fe49006fb0cd1c41cb06a2470a081637caf Mon Sep 17 00:00:00 2001 From: Stephen Beaver Date: Thu, 1 Oct 2015 13:42:33 -0400 Subject: Addresses #5159 by removing hide/show/disable/enable functions to included file --- src/usr/local/www/system_advanced_admin.php | 14 ++------------ 1 file changed, 2 insertions(+), 12 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 e98ad4f..91c7f98 100644 --- a/src/usr/local/www/system_advanced_admin.php +++ b/src/usr/local/www/system_advanced_admin.php @@ -527,24 +527,14 @@ 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) - $('#' + id).parent().parent('div').addClass('hidden'); - else - $('#' + id).parent().parent('div').removeClass('hidden'); - } - // ---------- On initial page load ------------------------------------------------------------ - hideInput('ssl-certificate', $('input[name=webguiproto]:checked').val() == 'http'); + hideInput('ssl-certref', $('input[name=webguiproto]:checked').val() == 'http'); // ---------- Click checkbox handlers --------------------------------------------------------- $('[id=webguiproto]').click(function () { - hideInput('ssl-certificate', $('input[name=webguiproto]:checked').val() == 'http'); + hideInput('ssl-certref', $('input[name=webguiproto]:checked').val() == 'http'); }); }); //]]> -- cgit v1.1