mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +01:00
17 lines
414 B
JavaScript
17 lines
414 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);
|