diff options
author | Unknwon <joe2010xtmf@163.com> | 2014-11-12 06:48:50 -0500 |
---|---|---|
committer | Unknwon <joe2010xtmf@163.com> | 2014-11-12 06:48:50 -0500 |
commit | 8c9338a5377c60c84cdee1f5781b3de5933bb3b0 (patch) | |
tree | 57de36743bf8b9c8eaa0ff51172180b834354c4d /public/ng/js/gogs.js | |
parent | 21b9d5fa1f4014b30619d221f5d665509d373147 (diff) |
add personal access token panel #12
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. |