review/static/scripts/ui.js @ 8be7ac46f0ec
Fix web tests
The index page always returns a 200 http status, even with an unknown revision
author |
Christophe de Vienne <cdevienne@gmail.com> |
date |
Fri, 21 Nov 2014 18:35:45 +0100 |
parents |
3fe8d9b6705b |
children |
(none) |
$(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;
});
$(".submit").live('click', function() {
$(this).closest("form").submit();
});
});