diff --git a/assets/script.js b/assets/script.js index 970578b..7932394 100644 --- a/assets/script.js +++ b/assets/script.js @@ -75,6 +75,7 @@ function openEditor() { const shadow = editor.querySelector('textarea.shadow-control'); const form = document.getElementById('article-editor'); const cancel = form.querySelector('.cancel'); + const cancelButton = form.querySelector('button.button-cancel'); const cancelInteractionGroup = form.querySelector(".cancel-interaction-group"); const footer = document.querySelector("footer"); @@ -109,6 +110,8 @@ function openEditor() { el.disabled = !baseEnabled; } + cancelButton.disabled = true; + // TODO: edit-link in footer? }