Added functionality to highlight a comment.

This commit is contained in:
Abijeet
2017-08-22 01:31:11 +05:30
parent ac07cb41b6
commit b5cd3bff3c
3 changed files with 28 additions and 24 deletions

View File

@ -144,17 +144,4 @@ module.exports = function (ngApp, events) {
};
}]);
// Controller used to fetch all comments for a page
ngApp.controller('CommentListController', ['$scope', '$http', '$timeout', '$location', function ($scope, $http, $timeout, $location) {
function focusLinkedComment(linkedCommentId) {
let comment = angular.element('#' + linkedCommentId);
if (comment.length === 0) {
return;
}
window.setupPageShow.goToText(linkedCommentId);
}
}]);
};