aboutsummaryrefslogtreecommitdiffstats
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-09-25 19:33:39 -0400
committerUnknwon <joe2010xtmf@163.com>2014-09-25 19:33:39 -0400
commit71e4689d118b3628a6ef7b93117c54265c4d83a5 (patch)
tree90b7b998ba4f5813f7286f3c5a02bece68f6dc62 /public/ng/js/gogs.js
parentf69761563b7a4fe9ace2a1643391cbcf9b92b372 (diff)
downloadgitea-71e4689d118b3628a6ef7b93117c54265c4d83a5.tar.gz
gitea-71e4689d118b3628a6ef7b93117c54265c4d83a5.zip
Page: User profile
Diffstat (limited to 'public/ng/js/gogs.js')
-rw-r--r--public/ng/js/gogs.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index a81eb8cef2..64bf42f347 100644
--- a/public/ng/js/gogs.js
+++ b/public/ng/js/gogs.js
@@ -608,6 +608,13 @@ function initInstall() {
}());
}
+function initProfile() {
+ // Avatar.
+ $('#profile-avatar').tipsy({
+ fade: true
+ });
+}
+
$(document).ready(function () {
Gogs.AppSubUrl = $('head').data('suburl');
initCore();
@@ -644,6 +651,9 @@ $(document).ready(function () {
if ($('#install-form').length) {
initInstall();
}
+ if ($('#user-profile-page').length) {
+ initProfile();
+ }
$('#dashboard-sidebar-menu').tabs();
$('#pull-issue-preview').markdown_preview(".issue-add-comment");