# HG changeset patch # User Steve Losh # Date 1278985067 14400 # Node ID 5668dd3e0a957606dcaea3da3e1ee4c01902834c # Parent 6711e7217487213dce212b1ffe9bd78f016b8041 web: show diffs by default diff -r 6711e7217487 -r 5668dd3e0a95 review/static/ui.js --- a/review/static/ui.js Sat Jul 10 14:27:31 2010 -0400 +++ b/review/static/ui.js Mon Jul 12 21:37:47 2010 -0400 @@ -1,18 +1,16 @@ $(function() { $("a.fold").toggle(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; - }, - function(event) { - $(event.target).closest(".file") - .find(".file-review-contents") - .slideUp("fast", function () { - $(event.target).closest("h3").find(".status").html("→"); - }); - return false; }); + $(".submit").live('click', function() { $(this).closest("form").submit(); }); diff -r 6711e7217487 -r 5668dd3e0a95 review/templates/changeset.html --- a/review/templates/changeset.html Sat Jul 10 14:27:31 2010 -0400 +++ b/review/templates/changeset.html Mon Jul 12 21:37:47 2010 -0400 @@ -88,11 +88,11 @@ {{ utils['b64'](filename) }}

{{ ufilename }}{% if commentcount %} ({{ commentcount }} comment{% if commentcount != 1 %}s{% endif %}){% endif %} - +

-
+
{% if comments %}
{% for comment in comments %}