0
0
Fork 0
mirror of https://github.com/dani-garcia/vaultwarden synced 2024-11-16 15:01:34 +01:00

Fix onsubmit

This commit is contained in:
Daniel García 2019-08-31 17:57:47 +02:00
parent e3404dd322
commit 7dcf18151d
No known key found for this signature in database
GPG key ID: FC8A7D14C3CD543A

View file

@ -56,7 +56,7 @@
<h6 class="mb-0 text-white">Invite User</h6> <h6 class="mb-0 text-white">Invite User</h6>
<small>Email:</small> <small>Email:</small>
<form class="form-inline" id="invite-form"> <form class="form-inline" id="invite-form" onsubmit="inviteUser(); return false;">
<input type="email" class="form-control w-50 mr-2" id="email-invite" placeholder="Enter email"> <input type="email" class="form-control w-50 mr-2" id="email-invite" placeholder="Enter email">
<button type="submit" class="btn btn-primary">Invite</button> <button type="submit" class="btn btn-primary">Invite</button>
</form> </form>
@ -71,7 +71,7 @@
them to avoid confusion. This does not apply to the read-only section, which can only be set through the them to avoid confusion. This does not apply to the read-only section, which can only be set through the
environment. environment.
</div> </div>
<form class="form accordion" id="config-form"> <form class="form accordion" id="config-form" onsubmit="saveConfig(); return false;">
{{#each config}} {{#each config}}
{{#if groupdoc}} {{#if groupdoc}}
<div class="card bg-light mb-3"> <div class="card bg-light mb-3">
@ -321,9 +321,6 @@
"3": { "name": "Manager", "color": "green" }, "3": { "name": "Manager", "color": "green" },
}; };
document.getElementById("invite-form").addEventListener("submit", inviteUser);
document.getElementById("config-form").addEventListener("submit", saveConfig);
document.querySelectorAll("img.identicon").forEach(function (e, i) { document.querySelectorAll("img.identicon").forEach(function (e, i) {
e.src = identicon(e.dataset.src); e.src = identicon(e.dataset.src);
}); });