Merge pull request #2044 from kazuki43zoo/fix-disable-comment-button

Release the disable status on line comment adding button when validation error occurred
This commit is contained in:
Naoki Takezoe
2018-06-04 15:38:19 +09:00
committed by GitHub

View File

@@ -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);
});
});