Module bauplan.ajax

Rest handling

require("bauplan.ajax");

Allows views to set specific error and success handlers for Backbone's AJAX requests

Also intercepts and performs redirects on AJAX responses, both get and post

Caching is disabled for all AJAX requests

Returns

Nothing - loaded just for its side effects

Extends

  • Backbone.ajax

Requires

  • lodash
  • jquery
  • backbone
  • handlebars
Source: