diff --git a/app/views/request_for_comments/show.html.erb b/app/views/request_for_comments/show.html.erb index 52faed62..a9bf7c65 100644 --- a/app/views/request_for_comments/show.html.erb +++ b/app/views/request_for_comments/show.html.erb @@ -180,9 +180,13 @@ also, all settings from the rails model needed for the editor configuration in t return a.id - b.id; }); var popupContent = ''; - cluster.forEach(function(comment) { + cluster.forEach(function(comment, index) { + if (index !== 0) { + popupContent += '
' + } popupContent += ''; + '
'; }); var icon = $('*[data-file-id="' + fileid + '"] > .ace_gutter > .ace_gutter-layer > div:nth-child(' + (clusterRow + 1) + ')'); icon.popover({