diff options
Diffstat (limited to 'public/ng/js/gogs.js')
-rw-r--r-- | public/ng/js/gogs.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/public/ng/js/gogs.js b/public/ng/js/gogs.js index eba1744b..33326376 100644 --- a/public/ng/js/gogs.js +++ b/public/ng/js/gogs.js @@ -300,8 +300,11 @@ function initCore() { $.magnificPopup.close(); }); - // Collapse. + // Plugins. $('.collapse').hide(); + $('.tipsy-tooltip').tipsy({ + fade: true + }); } function initUserSetting() { @@ -329,9 +332,9 @@ function initUserSetting() { $profile_form.submit(); }); - // Show add SSH key panel. - $('#ssh-add').click(function () { - $('#user-ssh-add-form').removeClass("hide"); + // Show panels. + $('.show-form-btn').click(function () { + $($(this).data('target-form')).removeClass("hide"); }); // Confirmation of delete account. |