Improve loading for account editing

main
sudoer777 2022-03-09 11:02:00 -07:00
parent 59e671e1ec
commit 3a54ce0d56
2 changed files with 5 additions and 0 deletions

View File

@ -9,6 +9,7 @@ const adminCheckboxSection = document.getElementById('admin-checkbox-section');
const adminCheckbox = document.getElementById('admin-checkbox');
const submitButton = document.getElementById('submit-button');
const deleteButton = document.getElementById('delete-button');
const loadingSpan = document.getElementById('loading-message');
async function Initialize() {
let params = new URLSearchParams(location.search);
@ -46,6 +47,9 @@ async function Initialize() {
passwordTextbox.disabled = false;
passwordTextbox.addEventListener('keyup', checkDataValidity);
checkDataValidity();
loadingSpan.textContent = '';
submissionForm.style.visibility = 'visible';
}
Initialize();

View File

@ -5,6 +5,7 @@ block stylesheets
link(rel='stylesheet', href='/stylesheets/form.css')
block content
span#loading-message Loading...
form#submission-form(action='/manage/account', method='POST')
if accountID
input#account-id(type="hidden" name="account" value=accountID)