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