aboutsummaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2014-03-02 21:58:32 +0800
committerLunny Xiao <xiaolunwen@gmail.com>2014-03-02 21:58:32 +0800
commitc4c23b3f7964c068ed31c308f39961a761c8995e (patch)
treeedfb719c88a93170e45e99ce42e0258573384785 /public/js
parentc8909d47583e5517a3c22e6e88362ebe5879a02b (diff)
parentffe0ba562c2d749ea904e7171b424ae251c1f62e (diff)
Merge branch 'master' of github.com:gogits/gogs
Diffstat (limited to 'public/js')
-rw-r--r--public/js/app.js17
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