(AcmeClient) add same hide() trickery for method selection

This commit is contained in:
Ad Schellevis
2017-03-04 14:33:47 +01:00
parent c9e71c280c
commit 3f1428dee4
2 changed files with 13 additions and 2 deletions
@@ -26,6 +26,7 @@
<field>
<label>HTTP-01</label>
<type>header</type>
<style>method_table method_table_http01</style>
</field>
<field>
<id>validation.http_service</id>
@@ -36,6 +37,7 @@
<field>
<label>HTTP-01/OPNsense</label>
<type>header</type>
<style>method_table method_table_http01</style>
</field>
<field>
<id>validation.http_opn_autodiscovery</id>
@@ -61,6 +63,7 @@
<field>
<label>HTTP-01/HAProxy</label>
<type>header</type>
<style>method_table method_table_http01</style>
</field>
<field>
<id>validation.http_haproxyInject</id>
@@ -93,6 +96,7 @@
<field>
<label>DNS-01</label>
<type>header</type>
<style>method_table method_table_dns01</style>
</field>
<field>
<id>validation.dns_service</id>
@@ -53,9 +53,16 @@ POSSIBILITY OF SUCH DAMAGE.
$("#validation\\.dns_service").change(function(){
var service_id = 'table_' + $(this).val() ;
$(".table_dns").hide();
$("."+service_id).show();
if ($("#validation\\.method").val() == 'dns01') {
$("."+service_id).show();
}
});
$("#validation\\.dns_service").change();
$("#validation\\.method").change(function(){
$(".method_table").hide();
$(".method_table_"+$(this).val()).show();
$("#validation\\.dns_service").change();
});
$("#validation\\.method").change();
})
});