mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 03:26:06 +01:00
Release the disable status on line comment adding button when validation error occurred
This commit is contained in:
@@ -122,7 +122,7 @@
|
||||
// $('#comment-list').children('.inline-comment').hide();
|
||||
// }
|
||||
}).fail(function(req) {
|
||||
$('.btn-inline-comment').removeAttr('disabled');
|
||||
$(e.target).removeAttr('disabled');
|
||||
$('#error-content', $form).html($.parseJSON(req.responseText).content);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user