2015-02-22 07:19:13 +01:00
|
|
|
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',
|
2016-01-08 10:21:33 +01:00
|
|
|
defaults: {
|
2015-02-22 07:19:13 +01:00
|
|
|
count: 0
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
2016-01-08 10:21:33 +01:00
|
|
|
module.exports = DeliveryDestination;
|