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";