mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
Secret key is loaded on the client only when needed and removed from DOM when hidden
This commit is contained in:
parent
e3be6b83db
commit
8a520f6a3f
@ -39,14 +39,21 @@ function initProfileEdit() {
|
|||||||
loadAvatarForEdit();
|
loadAvatarForEdit();
|
||||||
loadProfileForEdit();
|
loadProfileForEdit();
|
||||||
|
|
||||||
dumpPrivkey(defaultScreenName, function(args, key) {
|
$(".secret-key-container").hide();
|
||||||
$(".secret-key-container").hide();
|
|
||||||
$(".secret-key").text(key);
|
|
||||||
|
|
||||||
$(".toggle-priv-key").click(function () {
|
$(".toggle-priv-key").click(function () {
|
||||||
$(".secret-key-container").fadeToggle();
|
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();
|
||||||
|
}, {});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user