cart state for item in details page finnaly shows (arrggh worst kind of bugs)

This commit is contained in:
Senad Uka
2015-02-08 08:29:24 +01:00
parent 7770e59b81
commit 113b70e8fa
11 changed files with 139 additions and 37 deletions

View File

@@ -0,0 +1,23 @@
var Backbone = require('backbone'),
ItemInCart = require('./itemInCart'),
Globals = require('../globals');
var ItemInCartCollection = Backbone.Collection.extend({
initialize: function() {
$.ajaxPrefilter(
function(options, originalOptions, jqXHR) {
options.xhrFields = {
withCredentials: true
}
}
);
},
model: ItemInCart,
url: Globals.ApiUrl + '/cart/item'
});
module.exports = ItemInCartCollection;