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/vpn_ipsec_phase2.php | 42 ---------------------------------- 1 file changed, 42 deletions(-) (limited to 'src/usr/local/www/vpn_ipsec_phase2.php') diff --git a/src/usr/local/www/vpn_ipsec_phase2.php b/src/usr/local/www/vpn_ipsec_phase2.php index 6c85685..c747c50 100644 --- a/src/usr/local/www/vpn_ipsec_phase2.php +++ b/src/usr/local/www/vpn_ipsec_phase2.php @@ -909,48 +909,6 @@ events.push(function(){ hideClass('encalg', ($('#proto').val() != 'esp')); } - // ---------- Library of show/hide functions -------------------------------------------------- - - // Hides the
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'); - } - - // Hides the
in which the specified group input element lives so that the input, - // its label and help text are hidden - function hideGroupInput(id, hide) { - if(hide) - $('#' + id).parent('div').addClass('hidden'); - else - $('#' + id).parent('div').removeClass('hidden'); - } - - // Hides the
in which the specified checkbox lives so that the checkbox, - // its label and help text are hidden - function hideCheckbox(id, hide) { - if(hide) - $('#' + id).parent().parent().parent('div').addClass('hidden'); - else - $('#' + id).parent().parent().parent('div').removeClass('hidden'); - } - - // Disables the specified input element - function disableInput(id, disable) { - $('#' + id).prop("disabled", disable); - } - - // Hides all elements of the specified class. This will usually be a section or group - function hideClass(s_class, hide) { - if(hide) - $('.' + s_class).hide(); - else - $('.' + s_class).show(); - } - // ---------- Monitor elements for change and call the appropriate display functions ---------- // Protocol -- cgit v1.1