Merge branch 'master' of https://github.com/senaduka/ribica
This commit is contained in:
22
front-ui/app/models/deliveryDestination.js
Normal file
22
front-ui/app/models/deliveryDestination.js
Normal 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;
|
||||
Reference in New Issue
Block a user