added some models, started creating delivery destination state

This commit is contained in:
Senad Uka
2015-02-22 07:19:13 +01:00
parent 9c152e8adb
commit 2b6d93a437
8 changed files with 52 additions and 11 deletions

View File

@@ -0,0 +1,22 @@
var Backbone = require('backbone');
var Globals = require('../globals');
var DeliveryDestination = Backbone.Model.extend({
initialize: function() {
$.ajaxPrefilter(
function(options, originalOptions, jqXHR) {
options.xhrFields = {
withCredentials: true
}
}
);
},
url: Globals.ApiUrl + '/cart/delivery_destination',
defaults: {
count: 0
}
});
module.exports = DeliveryDestination;