From f9c428cfcd020ec510f3db03232b6a57f6cb3de3 Mon Sep 17 00:00:00 2001 From: Zlatin Balevsky Date: Sun, 8 Dec 2019 20:48:15 +0000 Subject: [PATCH] update comment indexing --- webui/src/main/js/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webui/src/main/js/search.js b/webui/src/main/js/search.js index e0a68383..b60e6467 100644 --- a/webui/src/main/js/search.js +++ b/webui/src/main/js/search.js @@ -107,7 +107,7 @@ var infoHash = null; function showCommentBySender(divId, spanId) { var split = divId.split("_"); var commentDiv = document.getElementById(divId); - var comment = "
"+ searches.get(split[1]).resultBatches.get(split[2]).results.get(split[3]).comment + "
"; + var comment = "
"+ currentSearchBySender.resultBatches.get(split[2]).results.get(split[3]).comment + "
"; commentDiv.innerHTML = comment expandedComments.set(divId, comment); var hideLink = "Hide Comment"; @@ -118,7 +118,7 @@ function showCommentBySender(divId, spanId) { function showCommentByFile(divId, spanId) { var split = divId.split("_"); var commentDiv = document.getElementById(divId); - var comment = "
"+searches.get(split[1]).resultBatches.get(split[2]).results.get(split[3]).comment + "
"; + var comment = "
"+currentSearchByFile.resultBatches.get(split[2]).results.get(split[3]).comment + "
"; commentDiv.innerHTML = comment expandedComments.set(divId, comment); var hideLink = "Hide Comment";