diff --git a/management/templates/smtp-relays.html b/management/templates/smtp-relays.html index 85ec1603..118e6b30 100644 --- a/management/templates/smtp-relays.html +++ b/management/templates/smtp-relays.html @@ -13,7 +13,7 @@

SMTP Relay Configuration

- +
") + api( + "/system/smtp/relay", + "GET", + {}, + data => { + console.log("Hi!") + use_relay.checked = data.enabled + relay_host.value = data.host + relay_use_auth.checked = data.auth_enabled + relay_auth_user.value = data.user + relay_auth_pass.value = "" - checkfields() - } - )) + checkfields() + } + ) + }
@@ -97,19 +97,22 @@ relay_auth_pass.disabled = !(relay_enabled && auth_enabled) } - $(api( - "/system/smtp/relay", - "GET", - {}, - data => { - console.log("Hi!") - use_relay.checked = data.enabled - relay_host.value = data.host - relay_use_auth.checked = data.auth_enabled - relay_auth_user.value = data.user - relay_auth_pass.value = "" + function show_smtp_relays() { + $('#smtp-relays tbody').html("
Loading...