Browse Source

Reset remaining character count to 140 when status is posted

master
Dionysis Zindros 11 years ago
parent
commit
0fdbc069eb
  1. 7
      interface_common.js

7
interface_common.js

@ -420,12 +420,17 @@ var postSubmit = function(e)
var $replyText = $this.closest(".post-area-new").find("textarea"); var $replyText = $this.closest(".post-area-new").find("textarea");
var $postOrig = $this.closest(".post-data"); var $postOrig = $this.closest(".post-data");
if( !$postOrig.length )
if (!$postOrig.length) {
$postOrig = $this.closest(".modal-content").find(".post-data"); $postOrig = $this.closest(".modal-content").find(".post-data");
}
newPostMsg($replyText.val(), $postOrig); newPostMsg($replyText.val(), $postOrig);
$replyText.val(""); $replyText.val("");
var tweetForm = $this.parents("form");
var remainingCount = tweetForm.find(".post-area-remaining");
remainingCount.text(140);
$replyText.attr("placeholder", "Your message was sent!"); $replyText.attr("placeholder", "Your message was sent!");
closeModal($this); closeModal($this);
} }

Loading…
Cancel
Save