review/static/ui.js @ 7521b06e6b18

web: add hovering on comments to highlight lines
author Steve Losh <steve@stevelosh.com>
date Sun, 13 Jun 2010 02:11:28 -0400
parents 805b5a153985
children 0d78b56ae9aa
$(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;
    });
});