mirror of
https://github.com/twisterarmy/twister-html.git
synced 2025-03-13 05:51:03 +00:00
Reset remaining character count to 140 when status is posted
This commit is contained in:
parent
30e6aeb576
commit
0fdbc069eb
@ -420,12 +420,17 @@ var postSubmit = function(e)
|
||||
var $replyText = $this.closest(".post-area-new").find("textarea");
|
||||
|
||||
var $postOrig = $this.closest(".post-data");
|
||||
if( !$postOrig.length )
|
||||
|
||||
if (!$postOrig.length) {
|
||||
$postOrig = $this.closest(".modal-content").find(".post-data");
|
||||
}
|
||||
|
||||
newPostMsg($replyText.val(), $postOrig);
|
||||
|
||||
$replyText.val("");
|
||||
var tweetForm = $this.parents("form");
|
||||
var remainingCount = tweetForm.find(".post-area-remaining");
|
||||
remainingCount.text(140);
|
||||
$replyText.attr("placeholder", "Your message was sent!");
|
||||
closeModal($this);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user