mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
(AcmeClient) add same hide() trickery for method selection
This commit is contained in:
+4
@@ -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>
|
||||
|
||||
+9
-2
@@ -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();
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user