diff options
Diffstat (limited to 'web_src/js/index.js')
-rw-r--r-- | web_src/js/index.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js index 810493a7d6..a8965a437f 100644 --- a/web_src/js/index.js +++ b/web_src/js/index.js @@ -1592,7 +1592,9 @@ async function initEditor() { const dirtyFileClass = 'dirty-file'; // Disabling the button at the start - $commitButton.prop('disabled', true); + if ($('input[name="page_has_posted"]').val() !== 'true') { + $commitButton.prop('disabled', true); + } // Registering a custom listener for the file path and the file content $editForm.areYouSure({ |