2011-01-06 Ojan Vafai <ojan@chromium.org>
authorojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jan 2011 02:52:42 +0000 (02:52 +0000)
committerojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jan 2011 02:52:42 +0000 (02:52 +0000)
        Fix line context when replying to comments.

        * code-review.js:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@75222 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Websites/bugs.webkit.org/ChangeLog
Websites/bugs.webkit.org/code-review.js

index c2f3a85..1d68dfc 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-06  Ojan Vafai  <ojan@chromium.org>
+
+        Fix line context when replying to comments.
+
+        * code-review.js:
+
 2011-01-05  Ojan Vafai  <ojan@chromium.org>
 
         Reviewed by Adam Barth.
index 654a6ed..3c45701 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);
   }