mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-10-31 10:31:07 +03:00 
			
		
		
		
	fix: if click send and before message is sended click send again then message will be duplicated
This commit is contained in:
		
							parent
							
								
									ad186da482
								
							
						
					
					
						commit
						8b32bebdc2
					
				| @ -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() { | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user