mirror of https://github.com/zulip/zulip.git
Reject messages consisting solely of whitespace.
Trac #1701 (imported from commit 48a172e17f69d11596ecf9a5b13cd48a074966c3)
This commit is contained in:
parent
00fc004be2
commit
e6de154e0d
|
@ -488,7 +488,7 @@ exports.validate = function () {
|
|||
$("#compose-send-button").attr('disabled', 'disabled').blur();
|
||||
$("#sending-indicator").show();
|
||||
|
||||
if (exports.message_content() === "") {
|
||||
if (/^\s*$/.test(exports.message_content())) {
|
||||
compose_error("You have nothing to send!", $("#new_message_content"));
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue