Fix caching bug on back button.

This commit is contained in:
cahrens
2013-03-22 09:51:45 -04:00
parent be4045cb86
commit a2a1478d92
4 changed files with 37 additions and 13 deletions

View File

@@ -12,6 +12,13 @@ CMS.Models.ChecklistCollection = Backbone.Collection.extend({
});
return response;
},
// Disable caching so the browser back button will work (checklists have links to other
// places within Studio).
fetch: function (options) {
options.cache = false;
return Backbone.Collection.prototype.fetch.call(this, options);
}
});