mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 22:57:51 +01:00
22 lines
466 B
JavaScript
22 lines
466 B
JavaScript
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();
|
|
} |