diff options
author | Unknown <joe2010xtmf@163.com> | 2014-03-02 15:25:14 -0500 |
---|---|---|
committer | Unknown <joe2010xtmf@163.com> | 2014-03-02 15:25:14 -0500 |
commit | 3f849ddfabbbbf77f66a18e0d88ba97a132f9812 (patch) | |
tree | 7f8365149c91ebc81c83c0767b3f51d53cc57de3 /public/js | |
parent | e9487cb59cb7fcdc8891ccae93c33c9f587c576f (diff) | |
parent | 71bae3ebd37e20130131328923dbff2de35093b6 (diff) |
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'public/js')
-rw-r--r-- | public/js/app.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/public/js/app.js b/public/js/app.js new file mode 100644 index 00000000..a8220f46 --- /dev/null +++ b/public/js/app.js @@ -0,0 +1,17 @@ +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);
\ No newline at end of file |