mirror of
https://github.com/Mibew/tray.git
synced 2025-01-22 18:10:34 +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();
|
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) {
|
submitError: function(model, error) {
|
||||||
if (error.code == model.ERROR_WRONG_CAPTCHA && model.get('showCaptcha')) {
|
if (error.code == model.ERROR_WRONG_CAPTCHA && model.get('showCaptcha')) {
|
||||||
var src = this.ui.captchaImg.attr('src');
|
var src = this.ui.captchaImg.attr('src');
|
||||||
|
Loading…
Reference in New Issue
Block a user