use a different class for alias toggle

This commit is contained in:
Son NK 2020-05-16 18:18:21 +02:00
parent 80f614da6c
commit 5e6454e6de
1 changed files with 2 additions and 2 deletions

View File

@ -211,7 +211,7 @@
{% endif %}
style="padding-left: 0px"
>
<input type="checkbox" class="custom-switch-input"
<input type="checkbox" class="enable-disable-alias custom-switch-input"
data-alias="{{ alias.id }}"
data-alias-email="{{ alias.email }}"
{{ "checked" if alias.enabled else "" }}>
@ -527,7 +527,7 @@
});
$(".custom-switch-input").change(async function (e) {
$(".enable-disable-alias").change(async function (e) {
let aliasId = $(this).data("alias");
let alias = $(this).data("alias-email");