review/static/scripts/ui.js @ 78819a1b530e

api: wrap the exists mkdir call to avoid needless errors
author Steve Losh <steve@stevelosh.com>
date Mon, 18 Jul 2011 13:34:36 -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();
    });
});