mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-13 16:37:52 +00:00
Merge pull request #68 from BlockTester/private-key-ui-fix
Private key UI fixes.
This commit is contained in:
commit
fffa3850f1
@ -39,9 +39,21 @@ function initProfileEdit() {
|
|||||||
loadAvatarForEdit();
|
loadAvatarForEdit();
|
||||||
loadProfileForEdit();
|
loadProfileForEdit();
|
||||||
|
|
||||||
dumpPrivkey(defaultScreenName, function(args, key) {
|
$(".secret-key-container").hide();
|
||||||
$(".secret-key").text(key);
|
|
||||||
}, {});
|
$(".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();
|
||||||
|
}, {});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,11 +84,12 @@
|
|||||||
<input type="text" class="input-website" placeholder="website"/>
|
<input type="text" class="input-website" placeholder="website"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="profile-edition-buttons">
|
<div class="profile-edition-buttons">
|
||||||
|
<button class="toggle-priv-key" style="float: left" href="#">Secret Key</button>
|
||||||
<button class="cancel-changes" href="#">Cancel</button>
|
<button class="cancel-changes" href="#">Cancel</button>
|
||||||
<button class="submit-changes" href="#">Save Changes</button>
|
<button class="submit-changes" href="#">Save Changes</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="font-size:80%;text-align: center;">
|
<div style="font-size:80%;text-align: center;" class="secret-key-container">
|
||||||
Secret key: <span class="secret-key"></span>
|
Secret key: <span class="secret-key"></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user