review/web_media/ui.js @ f841259cc87e
Move the individual line comment forms into comments.js. This *massively* improves performance on large diffs. For example, the review page for the changeset where I added CherryPy as a bundled app was 38.7mb before this changeset. With this change it is now 13.2mb.
| author | Steve Losh <steve@stevelosh.com> |
|---|---|
| date | Sat, 27 Mar 2010 13:03:00 -0400 |
| parents | c5debb475273 |
| children | (none) |
$(function() { $("a.fold-file").toggle(function(event) { $(event.target).closest("div.file-review").find("div.file-review-contents").slideUp("fast"); $(event.target).html(" ←").addClass("unfold-file").removeClass("fold-file"); return false; }, function(event) { $(event.target).closest("div.file-review").find("div.file-review-contents").slideDown("fast"); $(event.target).html(" ↓").addClass("fold-file").removeClass("unfold-file"); return false; }); });