From ffe0ba562c2d749ea904e7171b424ae251c1f62e Mon Sep 17 00:00:00 2001 From: FuXiaoHei Date: Sun, 2 Mar 2014 21:47:55 +0800 Subject: ui for user/profile page, only skeleton --- public/js/app.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 public/js/app.js (limited to 'public/js') 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 -- cgit v1.2.3