From 1b3478707b3713f46702d04ecd4ed3e20cb323e8 Mon Sep 17 00:00:00 2001 From: "adam.harbas@a-net.ba" Date: Thu, 7 Jan 2016 08:38:05 +0100 Subject: [PATCH] CartConfiguration removed --- front-ui/app/stores/cartStore.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/front-ui/app/stores/cartStore.js b/front-ui/app/stores/cartStore.js index 2dbedcb..31a5e54 100644 --- a/front-ui/app/stores/cartStore.js +++ b/front-ui/app/stores/cartStore.js @@ -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; },