No more jquery in adminpanel

This commit is contained in:
Kasper Rynning-Tønnesen
2018-08-13 13:19:24 +02:00
parent c699db6769
commit 44b065672d
4 changed files with 74 additions and 51 deletions

View File

@@ -1,6 +1,6 @@
window.addEventListener("DOMContentLoaded", function() {
document.getElementById("login_button").addEventListener("click", function(event) {
this.preventDefault();
event.preventDefault();
document.querySelector("#login_form").submit();
});