Release the disable status on line comment adding button when validation error occurred

This commit is contained in:
Kazuki Shimizu
2018-06-01 07:01:01 +09:00
parent 65ac7b7b13
commit ff4ad2d903

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