Improve loading for account editing
parent
59e671e1ec
commit
3a54ce0d56
|
@ -9,6 +9,7 @@ const adminCheckboxSection = document.getElementById('admin-checkbox-section');
|
||||||
const adminCheckbox = document.getElementById('admin-checkbox');
|
const adminCheckbox = document.getElementById('admin-checkbox');
|
||||||
const submitButton = document.getElementById('submit-button');
|
const submitButton = document.getElementById('submit-button');
|
||||||
const deleteButton = document.getElementById('delete-button');
|
const deleteButton = document.getElementById('delete-button');
|
||||||
|
const loadingSpan = document.getElementById('loading-message');
|
||||||
|
|
||||||
async function Initialize() {
|
async function Initialize() {
|
||||||
let params = new URLSearchParams(location.search);
|
let params = new URLSearchParams(location.search);
|
||||||
|
@ -46,6 +47,9 @@ async function Initialize() {
|
||||||
passwordTextbox.disabled = false;
|
passwordTextbox.disabled = false;
|
||||||
passwordTextbox.addEventListener('keyup', checkDataValidity);
|
passwordTextbox.addEventListener('keyup', checkDataValidity);
|
||||||
checkDataValidity();
|
checkDataValidity();
|
||||||
|
|
||||||
|
loadingSpan.textContent = '';
|
||||||
|
submissionForm.style.visibility = 'visible';
|
||||||
}
|
}
|
||||||
Initialize();
|
Initialize();
|
||||||
|
|
||||||
|
|
|
@ -5,6 +5,7 @@ block stylesheets
|
||||||
link(rel='stylesheet', href='/stylesheets/form.css')
|
link(rel='stylesheet', href='/stylesheets/form.css')
|
||||||
|
|
||||||
block content
|
block content
|
||||||
|
span#loading-message Loading...
|
||||||
form#submission-form(action='/manage/account', method='POST')
|
form#submission-form(action='/manage/account', method='POST')
|
||||||
if accountID
|
if accountID
|
||||||
input#account-id(type="hidden" name="account" value=accountID)
|
input#account-id(type="hidden" name="account" value=accountID)
|
||||||
|
|
Reference in New Issue