aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/app.js
diff options
context:
space:
mode:
authorFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-02 21:47:55 +0800
committerFuXiaoHei <fuxiaohei@hexiaz.com>2014-03-02 21:47:55 +0800
commitffe0ba562c2d749ea904e7171b424ae251c1f62e (patch)
tree24e94937d2baa40088f0f0813e1081f696977218 /public/js/app.js
parentffcfd428b8372b3b5fafc70acf2ecc189bd7712e (diff)
downloadgitea-ffe0ba562c2d749ea904e7171b424ae251c1f62e.tar.gz
gitea-ffe0ba562c2d749ea904e7171b424ae251c1f62e.zip
ui for user/profile page, only skeleton
Diffstat (limited to 'public/js/app.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 0000000000..a8220f46e1
--- /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