fix for delivery destination not validating

This commit is contained in:
Edin Dazdarevic
2015-06-04 13:37:33 +02:00
parent 99492f137f
commit 763bc329fc

View File

@@ -39,18 +39,19 @@ var loadCart = function() {
_itemsForDisplay.fetch({ _itemsForDisplay.fetch({
success: function() { success: function() {
CartActions.dataLoaded(); CartActions.dataLoaded();
_deliveryDestination.fetch({
success: function() {
validateDeliveryDestinationForm();
fetchPlace();
CartActions.dataLoaded();
}
});
} }
}); });
} }
}); });
//_deliveryDestination.fetch({
//success: function() {
//validateDeliveryDestinationForm();
//fetchPlace();
//CartActions.dataLoaded();
//}
//});
_cartDataLoadCalled = true; _cartDataLoadCalled = true;
}; };