# HG changeset patch # User Steve Losh # Date 1276402996 14400 # Node ID 191d8a0d619068c586d406884104bd2100743232 # Parent 17ad8036c6e21477301322b8f395e237d5f71588 web: hide file contents by default diff -r 17ad8036c6e2 -r 191d8a0d6190 review/static/ui.js --- a/review/static/ui.js Sun Jun 13 00:20:55 2010 -0400 +++ b/review/static/ui.js Sun Jun 13 00:23:16 2010 -0400 @@ -1,18 +1,18 @@ $(function() { $("a.fold").toggle(function(event) { + $(event.target).closest(".file").find(".file-review-contents").slideDown("fast", function() { + $(event.target).closest("h3").find(".status").html("↓"); + }); + return false; + }, + function(event) { $(event.target).closest(".file") .find(".file-review-contents") .slideUp("fast", function () { $(event.target).closest("h3").find(".status").html("→"); }); return false; - }, - function(event) { - $(event.target).closest(".file").find(".file-review-contents").slideDown("fast", function() { - $(event.target).closest("h3").find(".status").html("↓"); - }); - return false; }); }); diff -r 17ad8036c6e2 -r 191d8a0d6190 review/templates/changeset.html --- a/review/templates/changeset.html Sun Jun 13 00:20:55 2010 -0400 +++ b/review/templates/changeset.html Sun Jun 13 00:23:16 2010 -0400 @@ -105,10 +105,10 @@ {% for filename in rcset.files() %}
-
+
{% with %} {% set comments = rcset.file_level_comments(filename) %}