댓글 엔터시 입력

This commit is contained in:
2019-01-29 23:43:37 +09:00
parent ad43ddabe6
commit 0b002a8946
+5
View File
@@ -121,6 +121,11 @@ function drawArticle(idx, articleObj){
}); });
$article.find('.submitComment').click(submitComment); $article.find('.submitComment').click(submitComment);
$article.find('.commentText').on('keypress', function (e) {
if(e.which === 13){
$article.find('.submitComment').click();
}
});
var $board = $('#board'); var $board = $('#board');