single repository setting page ui

This commit is contained in:
FuXiaoHei 2014-03-13 14:08:49 +08:00
parent 3005a0f13e
commit a8d8e72562
10 changed files with 86 additions and 44 deletions

View file

@ -41,9 +41,8 @@ var Gogits = {
});
};
Gogits.initTabs = function () {
var $tabs = $('[data-toggle=tab]');
$tabs.tab("show");
$tabs.find("li:eq(" + index + ") a").tab("show");
var $tabs = $('[data-init=tabs]');
$tabs.find("li:eq(0) a").tab("show");
}
})(jQuery);
@ -69,6 +68,7 @@ var Gogits = {
function initCore() {
Gogits.initTooltips();
Gogits.initTabs();
Gogits.initModals();
}