aboutsummaryrefslogtreecommitdiff
path: root/public/ng/js/gogs.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/ng/js/gogs.js')
1 files changed, 10 insertions, 0 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js
index a81eb8ce..64bf42f3 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");