v0.14.23-fixed_js
This commit is contained in:
@@ -315,8 +315,13 @@ document.addEventListener('cancel', event => {
|
||||
if (confirmDiscardForm(form)) dialog.close();
|
||||
}, true);
|
||||
|
||||
function showTokenDialog() {
|
||||
function showTokenDialog(errorMessage = '') {
|
||||
const dialog = $('#tokenDialog');
|
||||
const form = $('#tokenForm');
|
||||
if (form) {
|
||||
clearFormErrors(form);
|
||||
if (errorMessage) showFieldError(form.elements.token, errorMessage);
|
||||
}
|
||||
if (!dialog.open) dialog.showModal();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user