From e3be6b83dbc4ca7c42ace0fa3d7640b4768bd37a Mon Sep 17 00:00:00 2001 From: Block Tester Date: Tue, 21 Jan 2014 21:27:24 +0000 Subject: [PATCH] UI change to hide secret key with toggle button --- interface_profile-edit.js | 5 +++++ profile-edit.html | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/interface_profile-edit.js b/interface_profile-edit.js index 0598e5b..b5f0dea 100644 --- a/interface_profile-edit.js +++ b/interface_profile-edit.js @@ -40,7 +40,12 @@ function initProfileEdit() { loadProfileForEdit(); dumpPrivkey(defaultScreenName, function(args, key) { + $(".secret-key-container").hide(); $(".secret-key").text(key); + + $(".toggle-priv-key").click(function () { + $(".secret-key-container").fadeToggle(); + }); }, {}); }); } 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: