From fe12b7c4be456f4405fdfd6fc68f16d4479bae4d Mon Sep 17 00:00:00 2001 From: Harvey Tindall Date: Thu, 2 Jul 2020 17:59:15 +0100 Subject: [PATCH] Change to bs5 (not functional) --- .gitignore | 1 + jellyfin_accounts/data/static/admin.js | 5 ++--- jellyfin_accounts/data/templates/admin.html | 7 ++----- 3 files changed, 5 insertions(+), 8 deletions(-) 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 @@ - - - + - - +