review/static/scripts/ui.js @ 48541d29e527

Merged in benallard/hg-review (pull request #1)
author Steve Losh <steve@stevelosh.com>
date Wed, 29 Jun 2011 19:47:16 -0400
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("&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;
    });

    $(".submit").live('click', function() {
        $(this).closest("form").submit();
    });
});