mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
secure a sequence order of splitted twists sending
This commit is contained in:
parent
42b1a6536b
commit
37fad362ee
@ -2467,7 +2467,8 @@ function postSubmit(e, oldLastPostId) {
|
||||
if (splitedPostsCount > 1) {
|
||||
if (textArea.length < splitedPostsCount) {
|
||||
//current part will be sent as reply to the previous part...
|
||||
postData = $('<div data-id="' + lastPostId + '" data-screen-name="' + defaultScreenName
|
||||
postData = $('<div data-id="' + (oldLastPostId + 1).toString() // (lastPostId - oldLastPostId) may be more than 1 because of an async nature of getting of the confirmation of sending
|
||||
+ '" data-screen-name="' + defaultScreenName
|
||||
+ '" data-reply-part-id="' + (splitedPostsCount - textArea.length).toString()
|
||||
+ '"></div>');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user