mirror of
https://github.com/Mibew/mibew.git
synced 2025-02-07 08:14:42 +03:00
Merge pull request #170 from Mibew/Silron88-patch-2
Fix possible duplicate messages on submit
This commit is contained in:
commit
5618a334d9
@ -84,6 +84,9 @@
|
|||||||
* Get, check and post message
|
* Get, check and post message
|
||||||
*/
|
*/
|
||||||
postMessage: function() {
|
postMessage: function() {
|
||||||
|
if (this.isDisabledInput()){
|
||||||
|
return;
|
||||||
|
}
|
||||||
var msg = this.ui.message.val();
|
var msg = this.ui.message.val();
|
||||||
// TODO: Think about it
|
// TODO: Think about it
|
||||||
// Cut multiple line breaks
|
// 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
|
* Clear message input area
|
||||||
*/
|
*/
|
||||||
clearInput: function() {
|
clearInput: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user