2011-01-06 Ojan Vafai <ojan@chromium.org>
[WebKit-https.git] / Websites / bugs.webkit.org / code-review.js
index 654a6ed980eda76d0da8f1560c5eb491f0250f3d..3c45701abec0c037ac7ca227599094a00e823e7f 100644 (file)
   }
 
   function addPreviousComment(line, author, comment_text) {
-    var comment_block = $('<div data-comment-for="' + line.attr('id') + '" class="previousComment"></div>');
-    var author_block = $('<div class="author"></div>').text(author + ':');
+    var line_id = line.attr('id');
+    var comment_block = $('<div data-comment-for="' + line_id + '" class="previousComment"></div>');    var author_block = $('<div class="author"></div>').text(author + ':');
     var text_block = $('<div class="content"></div>').text(comment_text);
     comment_block.append(author_block).append(text_block).each(hoverify).click(addCommentField);
+    addDataCommentBaseLine(line, line_id);
     insertCommentFor(line, comment_block);
   }