summaryrefslogtreecommitdiffstats
path: root/public/js/app.js
blob: 414af13522166aaf099a42d5c08ef5333cbfca08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var Gogits = {};

(function($){
    Gogits.showTooltips = function(){
        $("body").tooltip({
            selector: "[data-toggle=tooltip]"
            //container: "body"
        });
    };
    Gogits.showTab = function (selector, index) {
        if (!index) {
            index = 0;
        }
        $(selector).tab("show");
        $(selector).find("li:eq(" + index + ") a").tab("show");
    }
})(jQuery);


function initCore(){
    Gogits.showTooltips();
}