Merge branch 'MDL-57270_master' of git://github.com/markn86/moodle

This commit is contained in:
Eloy Lafuente (stronk7)
2016-12-19 13:04:16 +01:00
2 changed files with 3 additions and 3 deletions
File diff suppressed because one or more lines are too long
+2 -2
View File
@@ -393,10 +393,10 @@ define(['jquery', 'core/ajax', 'core/templates', 'core/notification', 'core/cust
*/
Messages.prototype._sendMessage = function() {
var element = this.messageArea.find(SELECTORS.SENDMESSAGETEXT);
var text = element.val();
var text = element.val().trim();
// Do not do anything if it is empty.
if (text.trim() === '') {
if (text === '') {
return false;
}