mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-02-04 19:14:14 +00:00
insignificant optimization of vars in postSubmit()
This commit is contained in:
parent
f7094887d7
commit
0b68a00481
@ -1570,9 +1570,8 @@ function postSubmit(e, oldLastPostId) {
|
|||||||
|
|
||||||
$(textArea[0]).remove();
|
$(textArea[0]).remove();
|
||||||
|
|
||||||
oldLastPostId = lastPostId;
|
|
||||||
doSubmitPost(postText, postData);
|
doSubmitPost(postText, postData);
|
||||||
setTimeout(postSubmit, 1000, btnPostSubmit, oldLastPostId);
|
setTimeout(postSubmit, 1000, btnPostSubmit, lastPostId);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -1581,9 +1580,7 @@ function postSubmit(e, oldLastPostId) {
|
|||||||
closePrompt();
|
closePrompt();
|
||||||
else {
|
else {
|
||||||
textArea.val('').attr('placeholder', polyglot.t('Your message was sent!'));
|
textArea.val('').attr('placeholder', polyglot.t('Your message was sent!'));
|
||||||
var tweetForm = btnPostSubmit.closest('form');
|
btnPostSubmit.closest('form').find('.post-area-remaining').text('140');
|
||||||
var remainingCount = tweetForm.find('.post-area-remaining');
|
|
||||||
remainingCount.text(140);
|
|
||||||
|
|
||||||
if (btnPostSubmit.closest('.post-area,.post-reply-content')) {
|
if (btnPostSubmit.closest('.post-area,.post-reply-content')) {
|
||||||
$('.post-area-new').removeClass('open').find('textarea').blur();
|
$('.post-area-new').removeClass('open').find('textarea').blur();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user