diff --git a/WebKit/scripts/controller/NewPost.js b/WebKit/scripts/controller/NewPost.js index 3d7d085..1b5b74e 100644 --- a/WebKit/scripts/controller/NewPost.js +++ b/WebKit/scripts/controller/NewPost.js @@ -247,13 +247,13 @@ function(APICalls, HostApp) { // re-inject the processed text into the div this.highlighter.html(text); - var count = 256 - this.textarea.val().length + (this.mentions.length * 6); + var count = 256 - (this.textarea.val().length + (this.mentions.length * 6)); this.counter.html(count); } NewPost.prototype.send = function() { - var count = 256 - this.textarea.val().length + (this.mentions.length * 6); + var count = 256 - (this.textarea.val().length + (this.mentions.length * 6)); if(count >= 0 && count <= 256) { this.sendNewMessage(); return true;