review/static/ui.js @ 959fb4d581f6 initial-docs

docs/api: add the repo layout in ascii art
author Steve Losh <steve@stevelosh.com>
date Mon, 12 Jul 2010 23:38:39 -0400
parents 5668dd3e0a95
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();
    });
});