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 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();
|
||||
|
||||
|
|
|
@ -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)
|
||||
|
|
Reference in New Issue