5668dd3e0a95

web: show diffs by default
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 12 Jul 2010 21:37:47 -0400
parents 6711e7217487
children 8cfb4cb7d7aa
branches/tags (none)
files review/static/ui.js review/templates/changeset.html

Changes

--- 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("&rarr;");
+        });
+        return false;
+    }, function(event) {
         $(event.target).closest(".file").find(".file-review-contents").slideDown("fast", function() {
             $(event.target).closest("h3").find(".status").html("&darr;");
         });
         return false;
-    },
-    function(event) {
-        $(event.target).closest(".file")
-                        .find(".file-review-contents")
-                        .slideUp("fast", function () {
-            $(event.target).closest("h3").find(".status").html("&rarr;");
-        });
-        return false;
     });
+
     $(".submit").live('click', function() {
         $(this).closest("form").submit();
     });
--- 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 @@
                 <span class="filename-b64 disabled">{{ utils['b64'](filename) }}</span>
                 <h3>
                     <a class="fold" href="#"><span class="filename-u">{{ ufilename }}</span>{% if commentcount %} ({{ commentcount }} comment{% if commentcount != 1 %}s{% endif %}){% endif %}</a>
-                    <span class="status">&rarr;</span>
+                    <span class="status">&darr;</span>
                 </h3>
             </div>
 
-            <div class="file-review-contents disabled">
+            <div class="file-review-contents">
                 {% if comments %}
                     <div class="comments item-listing">
                         {% for comment in comments %}