fix bug with post submit error callback

This commit is contained in:
Sacha Greif 2014-12-06 17:49:29 +09:00
parent d2d581fca9
commit 664c953744
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
## v0.10.0
* Renaming Errors to Messages (thanks @yourcelf!).
## v0.9.11 “FormScope”
* Now using [Autoform](https://github.com/aldeed/meteor-autoform/)'s **quickform** feature to generate post submit and edit forms.

View file

@ -49,7 +49,7 @@ AutoForm.hooks({
},
onError: function(operation, error, template) {
flashMessage(error.reason.split('|')[0], 'error'); // workaround because error.details returns undefined
flashMessage(error.message.split('|')[0], 'error'); // workaround because error.details returns undefined
clearSeenMessages();
// $(e.target).removeClass('disabled');
if (error.error == 603) {