mirror of
https://github.com/go-gitea/gitea
synced 2025-07-19 16:58:37 +00:00
Do not disable commit changes button on repost (#12644)
If the user has pressed commit changes and the post has failed - do not disable the commit changes button. Fix #12072 Signed-off-by: Andrew Thornton <art27@cantab.net>
This commit is contained in:
@@ -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({
|
||||
|
Reference in New Issue
Block a user