Open the appropriate comment flag when clicking on the line number.
Review Request #1524 — Created April 21, 2010 and submitted
Open the appropriate comment flag when clicking on the line number. When clicking on the line number of a row containing a comment flag, we would display a brand new comment box, instead of allowing the existing comment to be edited. We now properly find the comment box and show it.
Opened a line by clicking on the line number instead of the comment flag. Saw the comment box. This was caught by the new Selenium test suite.
-
The code looks alright to me. I tried out the patch, and it fixes the problem, though I noticed one tiny bit of weird behaviour: This is me clicking a single line without existing comments: http://imgur.com/WqWnv.png It opens normally, and the dialog appears just below the line that I clicked (line 56 in this case). This is me clicking a single line that has an existing comment on it: http://imgur.com/lA9n7.png The dialog opens quite a bit further down the screen, causing the page to jump a little. In this screenshot, I had to scroll back up to get the window where it roughly was for the first capture. It's really not a big deal, but I thought I'd bring it to your attention. Thanks, -Mike