mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-04 19:14:14 +00:00
setup twisterFollowingO before calling of verifyUserAlreadyInBlockchain because following twister requires updating of it
This commit is contained in:
parent
8d344f15fd
commit
058e24ba6a
@ -12,7 +12,7 @@ function initProfileEdit() {
|
|||||||
} else {
|
} else {
|
||||||
alert('The File APIs are not fully supported in this browser.');
|
alert('The File APIs are not fully supported in this browser.');
|
||||||
}
|
}
|
||||||
|
|
||||||
initInterfaceCommon();
|
initInterfaceCommon();
|
||||||
|
|
||||||
$(".profile-card-photo.forEdition").click( function() { $('#avatar-file').click(); } );
|
$(".profile-card-photo.forEdition").click( function() { $('#avatar-file').click(); } );
|
||||||
@ -26,19 +26,19 @@ function initProfileEdit() {
|
|||||||
$.MAL.goLogin();
|
$.MAL.goLogin();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
checkNetworkStatusAndAskRedirect(verifyUserAlreadyInBlockchain);
|
checkNetworkStatusAndAskRedirect();
|
||||||
|
|
||||||
if( defaultScreenName ) {
|
loadFollowing(function() {
|
||||||
loadFollowing( function() {
|
twisterFollowingO = TwisterFollowing(defaultScreenName);
|
||||||
initMentionsCount();
|
verifyUserAlreadyInBlockchain();
|
||||||
initDMsCount();
|
initMentionsCount();
|
||||||
});
|
initDMsCount();
|
||||||
}
|
});
|
||||||
|
|
||||||
$(".profile-card-main h2").text("@" + defaultScreenName);
|
$(".profile-card-main h2").text("@" + defaultScreenName);
|
||||||
loadAvatarForEdit();
|
loadAvatarForEdit();
|
||||||
loadProfileForEdit();
|
loadProfileForEdit();
|
||||||
|
|
||||||
$(".secret-key-container").hide();
|
$(".secret-key-container").hide();
|
||||||
|
|
||||||
$(".toggle-priv-key").click(function () {
|
$(".toggle-priv-key").click(function () {
|
||||||
@ -53,7 +53,7 @@ function initProfileEdit() {
|
|||||||
}, {});
|
}, {});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -94,7 +94,7 @@ function handleAvatarFileSelect(evt) {
|
|||||||
function verifyUserAlreadyInBlockchain()
|
function verifyUserAlreadyInBlockchain()
|
||||||
{
|
{
|
||||||
$.MAL.disableButton($(".submit-changes"));
|
$.MAL.disableButton($(".submit-changes"));
|
||||||
|
|
||||||
dumpPubkey(defaultScreenName, function(args, pubkey) {
|
dumpPubkey(defaultScreenName, function(args, pubkey) {
|
||||||
//pubkey = "";
|
//pubkey = "";
|
||||||
if( pubkey.length > 0 ) {
|
if( pubkey.length > 0 ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user