security/acme-client: simplify JS code

This commit is contained in:
Frank Wall 2017-03-21 15:36:35 +01:00
parent 09de341f2c
commit 6fcc7f8a5a

View file

@ -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();