Skip to content

Commit

Permalink
More accurately checks message length
Browse files Browse the repository at this point in the history
  • Loading branch information
nmcmahon1215 committed Oct 8, 2016
1 parent 15114a5 commit 89397e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MackLiveMain/war/main/js/console/LiveBlogConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ LiveBlogConsole.prototype = {
if (this.textArea.value.trim() == "" || this.nameField.value.trim() == "" || !this.initialized) {
this.submitButton.disabled = true;
} else {
this.submitButton.disabled = this.twitterSwitch.checked && this.textArea.value.length > this.twitterLimit;
this.submitButton.disabled = this.twitterSwitch.checked && this.textArea.value.trim().length > this.twitterLimit;
}

this.charCount.style.visibility = this.twitterSwitch.checked ? "visible" : "hidden"
Expand Down

0 comments on commit 89397e1

Please sign in to comment.