diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-13 02:09:55 -0400 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-13 02:09:55 -0400 |
commit | 18ba14913746c6c436c4632bdc9174ecfcd59dda (patch) | |
tree | 64868aa90dbc3cdc8c093c44ee067c4783d59fec /public/js/app.js | |
parent | ea765d25e21a5e2ff67ff39891962f5f23facda8 (diff) | |
parent | a8d8e7256249cb280b39d114dd6d6eadd4fec187 (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'public/js/app.js')
-rw-r--r-- | public/js/app.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/public/js/app.js b/public/js/app.js index a789122b..69d21020 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -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(); } |