From: Abijeet Date: Mon, 21 Aug 2017 20:09:09 +0000 (+0530) Subject: Fixes the comment check for linked comment. X-Git-Tag: v0.18.0~1^2~15^2^2~2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/6920d6eef10534ae360af685074c2b8e5428bc22?ds=inline Fixes the comment check for linked comment. --- diff --git a/resources/assets/js/vues/page-comments.js b/resources/assets/js/vues/page-comments.js index 4cdee05ed..6a550e991 100644 --- a/resources/assets/js/vues/page-comments.js +++ b/resources/assets/js/vues/page-comments.js @@ -104,11 +104,9 @@ function getUrlParameter(name) { function focusLinkedComment(linkedCommentId) { let comment = document.getElementById(linkedCommentId); - if (comment && comment.length === 0) { - return; + if (comment && comment.length !== 0) { + window.setupPageShow.goToText(linkedCommentId); } - - window.setupPageShow.goToText(linkedCommentId); } module.exports = {