1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Removes some unused code.

This commit is contained in:
Abijeet
2017-08-23 01:04:36 +05:30
parent 769935f99e
commit 76ae5c7398
3 changed files with 2 additions and 47 deletions

View File

@ -44,7 +44,6 @@ let computed = {
function mounted() {
this.pageId = Number(this.$el.getAttribute('page-id'));
// let linkedCommentId = this.$route.query.cm;
let linkedCommentId = getUrlParameter('cm');
this.$http.get(window.baseUrl(`/ajax/page/${this.pageId}/comments/`)).then(resp => {
if (!isCommentOpSuccess(resp)) {
@ -61,7 +60,8 @@ function mounted() {
return;
}
// adding a setTimeout to give comment list some time to render.
// adding a setTimeout to give the comment list some time to render
// before focusing the comment.
setTimeout(function() {
focusLinkedComment(linkedCommentId);
});