second lockPageUI runs after there's no codebox anymore
This commit is contained in:
parent
ab98d46baa
commit
443e3a3c7c
|
@ -463,7 +463,7 @@ function fromMozillaFormat() {
|
|||
})
|
||||
.then(sectionDivs => {
|
||||
sectionDivs.forEach(div => updateLintReportIfEnabled(div.CodeMirror, 1));
|
||||
$('.dismiss', popup).onclick();
|
||||
$('.dismiss').dispatchEvent(new Event('click'));
|
||||
})
|
||||
.catch(showError)
|
||||
.then(() => lockPageUI(false));
|
||||
|
@ -483,10 +483,12 @@ function fromMozillaFormat() {
|
|||
|
||||
function lockPageUI(locked) {
|
||||
document.documentElement.style.pointerEvents = locked ? 'none' : '';
|
||||
if (popup.codebox) {
|
||||
popup.classList.toggle('ready', locked ? false : !popup.codebox.isBlank());
|
||||
popup.codebox.options.readOnly = locked;
|
||||
popup.codebox.display.wrapper.style.opacity = locked ? '.5' : '';
|
||||
}
|
||||
}
|
||||
|
||||
function showError(errors) {
|
||||
messageBox({
|
||||
|
|
Loading…
Reference in New Issue
Block a user