From b9987bc066cb2381ccc4beeba63db04beabfeaef Mon Sep 17 00:00:00 2001 From: mDeflotte Date: Tue, 22 Nov 2011 15:36:01 +0000 Subject: [PATCH] // --- themes/prestashop/js/order-opc.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/themes/prestashop/js/order-opc.js b/themes/prestashop/js/order-opc.js index 9ffa119ff..fcdaa2aa4 100755 --- a/themes/prestashop/js/order-opc.js +++ b/themes/prestashop/js/order-opc.js @@ -745,10 +745,10 @@ function multishippingMode(it) $('#link_multishipping_form').show(); $('#link_multishipping_form').fancybox({ - 'transitionIn' : 'elastic', - 'transitionOut' : 'elastic', - 'type' : 'ajax', - 'onClosed' : function() + 'transitionIn': 'elastic', + 'transitionOut': 'elastic', + 'type': 'ajax', + 'onClosed': function() { // Relaod the cart $.ajax({ @@ -761,13 +761,17 @@ function multishippingMode(it) }) updateCarrierSelectionAndGift(); }, - 'onStart' : function() + 'onStart': function() { // Removing all ids on the cart to avoid conflic with the new one on the fancybox // This action could "break" the cart design, if css rules use ids of the cart $.each($('#cart_summary *'), function(it, el) { $(el).attr('id', ''); }); + }, + 'onComplete': function() + { + cleanSelectAddressDelivery(); } }); }