about summary refs log tree commit diff
path: root/public/js/common.js
blob: 144b9c74aed3c29402ff5d6c011b44f96c52382d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$(document).ready(function() {
    $('.builds-day').click(function() {
        var commit_id = $(this).attr('id').replace("builds","commits");
        console.log(commit_id);
        $("#" + commit_id).toggle();
    });
    /* This times out on large test outputs
    $('.builds a').click(function() {
        var url = $(this).attr("href");
        var id = $(this).parents('.commit').attr('id');
        $.getJSON(url, null, function(data) {
            $("#result-" + id).html("<pre>" + data.content + "<pre>").toggle();
        });
        return false;
    })
    */
})