Changeset 79836 in webkit
- Timestamp:
- Feb 27, 2011 7:39:20 PM (13 years ago)
- Location:
- trunk/Websites/bugs.webkit.org
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Websites/bugs.webkit.org/ChangeLog
r79515 r79836 1 2011-02-25 Ojan Vafai <ojan@chromium.org> 2 3 Reviewed by Adam Barth. 4 5 [codereviewtool] fix expand links on git diffs 6 https://bugs.webkit.org/show_bug.cgi?id=55208 7 8 In git diffs, we don't have a "revision" span at the end 9 of each FileDiff. 10 * code-review.js: 11 1 12 2011-02-23 Ojan Vafai <ojan@chromium.org> 2 13 -
trunk/Websites/bugs.webkit.org/code-review.js
r79399 r79836 647 647 $('br', file_diff).replaceWith(expandBarHtml()); 648 648 649 // jquery doesn't support :last-of-type, so use querySelector instead. 649 650 var last_line = file_diff.querySelector('.LineContainer:last-of-type'); 650 651 // Some patches for new files somehow end up with an empty context line at the end 651 652 // with a from line number of 0. Don't show expand links in that case either. 652 653 if (!$(last_line).hasClass('add') && !$(last_line).hasClass('remove') && fromLineNumber(last_line) != 0) 653 $( '.revision', file_diff).before(expandBarHtml(ABOVE));654 $(file_diff.querySelector('.DiffSection:last-of-type')).after(expandBarHtml(ABOVE)); 654 655 } 655 656
Note: See TracChangeset
for help on using the changeset viewer.