summary refs log tree commit diff
path: root/public/js/common.js
blob: 646f80e797be52177e92d31808b03c3e37de3638 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$(document).ready(function() {
    $('.builds-day').click(function() {
        var day = $(this).text();
        var class = "#commits-day-" + day;
        $(class).toggle();
    });
    $('.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;
    })
})