diff --git a/interface_profile-edit.js b/interface_profile-edit.js index 0598e5b..1e37c4a 100644 --- a/interface_profile-edit.js +++ b/interface_profile-edit.js @@ -39,9 +39,21 @@ function initProfileEdit() { loadAvatarForEdit(); loadProfileForEdit(); - dumpPrivkey(defaultScreenName, function(args, key) { - $(".secret-key").text(key); - }, {}); + $(".secret-key-container").hide(); + + $(".toggle-priv-key").click(function () { + if ($(".secret-key-container").is(":visible")) { + $(".secret-key-container").fadeOut(function () { + $(".secret-key").text(''); + }); + } else { + dumpPrivkey(defaultScreenName, function(args, key) { + $(".secret-key").text(key); + $(".secret-key-container").fadeIn(); + }, {}); + } + }); + }); } diff --git a/profile-edit.html b/profile-edit.html index 09879cc..55a606d 100644 --- a/profile-edit.html +++ b/profile-edit.html @@ -84,11 +84,12 @@
+
-
+
Secret key: