review/static/scripts/ui.js @ 3e5dfa8a94ef

Use revset to calculate rev list.

When using obsolescence markers, the rev numbers are not a continuous range.
This patch uses revset expressions to find the LOG_PAGE_LEN previous accessible
revisions and calculate older and newer links.
author Christophe de Vienne <cdevienne@gmail.com>
date Mon, 27 Oct 2014 18:42:14 +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();
    });
});