Browse Source

Merging fffa3850f1 - add secret key button

master
Block Tester 11 years ago committed by toyg
parent
commit
00dbe4f0e3
  1. 5
      interface_profile-edit.js
  2. 3
      profile-edit.html

5
interface_profile-edit.js

@ -40,7 +40,12 @@ function initProfileEdit() {
loadProfileForEdit(); loadProfileForEdit();
dumpPrivkey(defaultScreenName, function(args, key) { dumpPrivkey(defaultScreenName, function(args, key) {
$(".secret-key-container").hide();
$(".secret-key").text(key); $(".secret-key").text(key);
$(".toggle-priv-key").click(function () {
$(".secret-key-container").fadeToggle();
});
}, {}); }, {});
}); });
} }

3
profile-edit.html

@ -86,11 +86,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">
<span class="label">Secret key:</span> <span class="secret-key"></span> <span class="label">Secret key:</span> <span class="secret-key"></span>
</div> </div>

Loading…
Cancel
Save