lib/public/javascripts/edifice/form.js in edifice-0.6.6 vs lib/public/javascripts/edifice/form.js in edifice-0.6.7
- old
+ new
@@ -126,14 +126,12 @@
// we aren't going to do anything here.
// FIXME: we should probably have a way to set this behaviour at the application level.
// for instance, you probably just want to redirect to somewhere, or show a dialog,
// or popup something or.....?
} else {
- // some other kind of error. Revisit
- alert('Form failed. Please try again.');
+ // some other kind of error- something in the browser (e.g. navigating away)
+ this.trigger('browser_error', [request, status, error, this]);
}
-
-
},
}
}(jQuery));
\ No newline at end of file