CartConfiguration removed
This commit is contained in:
@@ -27,9 +27,6 @@ var _deliveryCosts = new Place({
|
|||||||
|
|
||||||
var _addressColapsed = false;
|
var _addressColapsed = false;
|
||||||
|
|
||||||
var CartConfiguration = require('../models/cartConfiguration');
|
|
||||||
var _cartConfiguration = new CartConfiguration();
|
|
||||||
|
|
||||||
var supportedPlaces = [{
|
var supportedPlaces = [{
|
||||||
"code": "-12",
|
"code": "-12",
|
||||||
"placeLabel": "Izaberite mjesto"
|
"placeLabel": "Izaberite mjesto"
|
||||||
@@ -2571,8 +2568,6 @@ var nameOfThePlace = function(code) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var loadCart = function() {
|
var loadCart = function() {
|
||||||
loadCartConfiguration();
|
|
||||||
|
|
||||||
_itemsInCart.fetch({
|
_itemsInCart.fetch({
|
||||||
success: function() {
|
success: function() {
|
||||||
states = {}
|
states = {}
|
||||||
@@ -2732,10 +2727,6 @@ var saveDeliveryDestination = function() {
|
|||||||
})
|
})
|
||||||
};
|
};
|
||||||
|
|
||||||
var loadCartConfiguration = function() {
|
|
||||||
_cartConfiguration.fetch();
|
|
||||||
}
|
|
||||||
|
|
||||||
var validateDeliveryDestinationForm = function() {
|
var validateDeliveryDestinationForm = function() {
|
||||||
_deliveryDestinationErrors = {};
|
_deliveryDestinationErrors = {};
|
||||||
|
|
||||||
@@ -2820,8 +2811,7 @@ var CartStore = _.extend({}, EventEmitter.prototype, {
|
|||||||
deliveryDestinationErrors: _deliveryDestinationErrors,
|
deliveryDestinationErrors: _deliveryDestinationErrors,
|
||||||
isDeliveryDestinationValid: isDeliveryDestinationValid(),
|
isDeliveryDestinationValid: isDeliveryDestinationValid(),
|
||||||
deliveryCosts: _deliveryCosts,
|
deliveryCosts: _deliveryCosts,
|
||||||
destinationValid: isDeliveryDestinationValid(),
|
destinationValid: isDeliveryDestinationValid()
|
||||||
cartConfiguration: _cartConfiguration
|
|
||||||
};
|
};
|
||||||
return state;
|
return state;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user