diff --git a/.gitignore b/.gitignore
index 6096704..3d78030 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,3 +14,4 @@ theme.css
jellyfin_accounts/data/static/bootstrap-jf.css
old/
.jf-accounts/
+requirements.txt
diff --git a/jellyfin_accounts/data/static/admin.js b/jellyfin_accounts/data/static/admin.js
index 36e7cb9..0d580c5 100644
--- a/jellyfin_accounts/data/static/admin.js
+++ b/jellyfin_accounts/data/static/admin.js
@@ -162,8 +162,7 @@ function toClipboard(str) {
document.getSelection().addRange(selected);
}
};
-
-$("form#inviteForm").submit(function() {
+document.getElementById('inviteForm').onsubmit = function() {
var button = document.getElementById('generateSubmit');
button.disabled = true;
button.innerHTML =
@@ -194,7 +193,7 @@ $("form#inviteForm").submit(function() {
});
return false;
-});
+};
$("form#loginForm").submit(function() {
window.token = "";
var details = $("form#loginForm").serializeObject();
diff --git a/jellyfin_accounts/data/templates/admin.html b/jellyfin_accounts/data/templates/admin.html
index b50574a..cb6fc5e 100644
--- a/jellyfin_accounts/data/templates/admin.html
+++ b/jellyfin_accounts/data/templates/admin.html
@@ -14,12 +14,9 @@
-
-
-
+
-
-
+