2011-02-20 Ojan Vafai <ojan@chromium.org>
authorojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Feb 2011 05:37:03 +0000 (05:37 +0000)
committerojan@chromium.org <ojan@chromium.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 21 Feb 2011 05:37:03 +0000 (05:37 +0000)
        Reviewed by Adam Barth.

        [codereviewtool] make enter work when an individual line is focused
        https://bugs.webkit.org/show_bug.cgi?id=54843

        * code-review.js:

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

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

index be0267cab0a0af3b12573b3218012d8f92668dc6..b9b4472235b657882fc7a49e27a83a3936b2da3a 100644 (file)
@@ -1,3 +1,12 @@
+2011-02-20  Ojan Vafai  <ojan@chromium.org>
+
+        Reviewed by Adam Barth.
+
+        [codereviewtool] make enter work when an individual line is focused
+        https://bugs.webkit.org/show_bug.cgi?id=54843
+
+        * code-review.js:
+
 2011-02-17  Ojan Vafai  <ojan@chromium.org>
 
         Reviewed by Adam Barth.
index d31adf3bf9f8e15bf35d8537ae387e73148a48b5..76dc285c3c19b78fd4b8ead00b346c55aab0eca3 100644 (file)
@@ -1471,7 +1471,7 @@ var CODE_REVIEW_UNITTEST;
       return true;
     }
 
-    var lines = $('.Line', focused);
+    var lines = focused.hasClass('Line') ? focused : $('.Line', focused);
     var last = lines.last();
     if (last.attr('data-has-comment')) {
       unfreezeCommentFor(last);