From 6fcc7f8a5ae706279553601e606ee6d6da2b6766 Mon Sep 17 00:00:00 2001 From: Frank Wall Date: Tue, 21 Mar 2017 15:36:35 +0100 Subject: [PATCH] security/acme-client: simplify JS code --- .../opnsense/mvc/app/views/OPNsense/AcmeClient/actions.volt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/actions.volt b/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/actions.volt index 68def86c4..2eef0c115 100644 --- a/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/actions.volt +++ b/security/acme-client/src/opnsense/mvc/app/views/OPNsense/AcmeClient/actions.volt @@ -53,9 +53,7 @@ POSSIBILITY OF SUCH DAMAGE. $("#action\\.type").change(function(){ var service_id = 'table_optional_' + $(this).val(); $(".table_optional").hide(); - if (($("#action\\.type").val() == 'configd') || ($("#action\\.type").val() == 'custom')) { - $("."+service_id).show(); - } + $("."+service_id).show(); }); $("#action\\.type").change(function(){ $(".method_table").hide();