From 8c9338a5377c60c84cdee1f5781b3de5933bb3b0 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 12 Nov 2014 06:48:50 -0500 Subject: add personal access token panel #12 --- public/ng/js/gogs.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'public/ng/js/gogs.js') 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. -- cgit v1.2.3