-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 3.1.0, 3.5.0
-
Component/s: AUI, Plugin Development
Using restful tables with Stash and returning back a 401 error resource (to show an error message), Stash comes down because of the jqXhr error pipe and show's it's generic error message.
The workaround I've found so far is to add:
var stashEntryModel = AJS.RestfulTable.EntryModel.extend({
sync : function(method, model, opts) {
return Backbone.sync(method, model, AJS.$.extend({
statusCode : {
401 : false // ignore HTTP 400s.
}
}, opts));
}
});
to my code. Would be great if it Stash supported restfultable natively ![]()