mirror of
				https://github.com/Mibew/java.git
				synced 2025-10-31 18:41:09 +03:00 
			
		
		
		
	Update docs for Mibew.Views.LeaveMessageFrom.submitError
This commit is contained in:
		
							parent
							
								
									3804d26cab
								
							
						
					
					
						commit
						a3c6141ab7
					
				| @ -92,6 +92,14 @@ | ||||
|                 this.model.submit(); | ||||
|             }, | ||||
| 
 | ||||
|             /** | ||||
|              * Handler function for model 'submitError' event. | ||||
|              * Update captcha img if captcha field has wrong value. | ||||
|              * | ||||
|              * @param {Mibew.Models.LeaveMessageForm} model Form model | ||||
|              * @param {Object} error Error object, contains 'code' and 'message' | ||||
|              * fields | ||||
|              */ | ||||
|             submitError: function(model, error) { | ||||
|                 if (error.code == model.ERROR_WRONG_CAPTCHA && model.get('showCaptcha')) { | ||||
|                     var src = this.ui.captchaImg.attr('src'); | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user