vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 7dcf18151dc7c9ec415b3ce46b4f2ad700adc8dc
parent e3404dd3222ba703d9810d585f161c06f6cb6fc7
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Sat, 31 Aug 2019 17:57:47 +0200

Fix onsubmit

Diffstat:
Msrc/static/templates/admin/page.hbs | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/static/templates/admin/page.hbs b/src/static/templates/admin/page.hbs @@ -56,7 +56,7 @@ <h6 class="mb-0 text-white">Invite User</h6> <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"> <button type="submit" class="btn btn-primary">Invite</button> </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 environment. </div> - <form class="form accordion" id="config-form"> + <form class="form accordion" id="config-form" onsubmit="saveConfig(); return false;"> {{#each config}} {{#if groupdoc}} <div class="card bg-light mb-3"> @@ -321,9 +321,6 @@ "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) { e.src = identicon(e.dataset.src); });