mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-02 11:36:05 +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();
|
// $('#comment-list').children('.inline-comment').hide();
|
||||||
// }
|
// }
|
||||||
}).fail(function(req) {
|
}).fail(function(req) {
|
||||||
$('.btn-inline-comment').removeAttr('disabled');
|
$(e.target).removeAttr('disabled');
|
||||||
$('#error-content', $form).html($.parseJSON(req.responseText).content);
|
$('#error-content', $form).html($.parseJSON(req.responseText).content);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user