web: show diffs by default
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("→");
+ });
+ 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();
});
--- 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">→</span>
+ <span class="status">↓</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 %}