review/static/ui.js @ 83b866324067

web: underscorify a few things and fix the line comment form moving
author Steve Losh <steve@stevelosh.com>
date Sat, 03 Jul 2010 11:46:04 -0400
parents 0d78b56ae9aa
children 5668dd3e0a95
$(function() {
    $("a.fold").toggle(function(event) {
        $(event.target).closest(".file").find(".file-review-contents").slideDown("fast", function() {
            $(event.target).closest("h3").find(".status").html("&darr;");
        });
        return false;
    },
    function(event) {
        $(event.target).closest(".file")
                        .find(".file-review-contents")
                        .slideUp("fast", function () {
            $(event.target).closest("h3").find(".status").html("&rarr;");
        });
        return false;
    });
    $(".submit").live('click', function() {
        $(this).closest("form").submit();
    });
});