Query error handle blocks restful table

XMLWordPrintable

      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

            Assignee:
            Scott Goodhew (Inactive)
            Reporter:
            Daniel Wester
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: