review/static/scripts/ui.js @ 9ee9ef21460c

ReviewChangeset loads precursors comments
author Christophe de Vienne <cdevienne@gmail.com>
date Mon, 27 Oct 2014 22:40:30 +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("&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();
    });
});