mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-01-24 13:44:21 +00:00
fixing some setTimeout issues
This commit is contained in:
parent
1a48d32473
commit
0496ba4623
@ -1157,8 +1157,12 @@ var postSubmit = function(e, oldLastPostId)
|
|||||||
if (e instanceof $) {
|
if (e instanceof $) {
|
||||||
$this = e;
|
$this = e;
|
||||||
//check if previous part was sent...
|
//check if previous part was sent...
|
||||||
if ( oldLastPostId === lastPostId)
|
if ( oldLastPostId === lastPostId) {
|
||||||
setTimeout(postSubmit, 1000, $this, oldLastPostId);
|
setTimeout(function () {
|
||||||
|
postSubmit($this, oldLastPostId);
|
||||||
|
}, 1000);
|
||||||
|
return;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
e.stopPropagation();
|
e.stopPropagation();
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
@ -1205,8 +1209,9 @@ var postSubmit = function(e, oldLastPostId)
|
|||||||
|
|
||||||
$($replyText[0]).remove();
|
$($replyText[0]).remove();
|
||||||
|
|
||||||
|
oldLastPostId = lastPostId;
|
||||||
newPostMsg(postxt, $postOrig);
|
newPostMsg(postxt, $postOrig);
|
||||||
setTimeout(postSubmit, 1000, $this, lastPostId);
|
setTimeout(function() {postSubmit($this, oldLastPostId);}, 1000);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -390,7 +390,7 @@ function getRandomFollowSuggestion(cbFunc, cbArg) {
|
|||||||
if ( (i < followingUsers.length && followingUsers[i] == defaultScreenName) ||
|
if ( (i < followingUsers.length && followingUsers[i] == defaultScreenName) ||
|
||||||
typeof(twisterFollowingO.followingsFollowings[followingUsers[i]]) === 'undefined') {
|
typeof(twisterFollowingO.followingsFollowings[followingUsers[i]]) === 'undefined') {
|
||||||
|
|
||||||
setTimeout(getRandomFollowSuggestion, 500, cbFunc, cbArg);
|
setTimeout(function() {getRandomFollowSuggestion(cbFunc, cbArg);}, 500);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user