mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 10:01:40 -05:00
fix bug with post submit error callback
This commit is contained in:
parent
d2d581fca9
commit
664c953744
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
## v0.10.0
|
||||||
|
|
||||||
|
* Renaming Errors to Messages (thanks @yourcelf!).
|
||||||
|
|
||||||
## v0.9.11 “FormScope”
|
## v0.9.11 “FormScope”
|
||||||
|
|
||||||
* Now using [Autoform](https://github.com/aldeed/meteor-autoform/)'s **quickform** feature to generate post submit and edit forms.
|
* Now using [Autoform](https://github.com/aldeed/meteor-autoform/)'s **quickform** feature to generate post submit and edit forms.
|
||||||
|
|
|
@ -49,7 +49,7 @@ AutoForm.hooks({
|
||||||
},
|
},
|
||||||
|
|
||||||
onError: function(operation, error, template) {
|
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();
|
clearSeenMessages();
|
||||||
// $(e.target).removeClass('disabled');
|
// $(e.target).removeClass('disabled');
|
||||||
if (error.error == 603) {
|
if (error.error == 603) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue