lib/public/javascripts/edifice/form.js in edifice-0.6.7 vs lib/public/javascripts/edifice/form.js in edifice-0.6.8
- old
+ new
@@ -93,10 +93,10 @@
this.error_fields().eq(0).focus();
this.trigger('invalid', [this]);
},
error: function(request, text_status, error) {
- this.trigger('error', request, status, error);
+ this.trigger('error', [request, status, error, this]);
// handle the different possible errors that we can see
if (request.status >= 400 && request.status < 500) {
// CLIENT ERROR -- server-side validation failed.
this.trigger('client_error', [request, status, error, this]);
\ No newline at end of file