Merge pull request #170 from Mibew/Silron88-patch-2

Fix possible duplicate messages on submit
This commit is contained in:
Fedor A. Fetisov 2016-08-09 17:54:17 +03:00 committed by GitHub
commit 5618a334d9

View File

@ -84,6 +84,9 @@
* Get, check and post message
*/
postMessage: function() {
if (this.isDisabledInput()){
return;
}
var msg = this.ui.message.val();
// TODO: Think about it
// Cut multiple line breaks
@ -129,6 +132,13 @@
},
/**
* Check is disabled message input area
*/
isDisabledInput: function() {
return this.ui.message.attr('disabled') == 'disabled';
},
/**svn
* Clear message input area
*/
clearInput: function() {