From 0edcca326d4bc102d95bb9b3bd6f5f13d36a200b Mon Sep 17 00:00:00 2001 From: lLefevre Date: Thu, 6 Sep 2012 09:10:14 +0000 Subject: [PATCH] [-] FO : mobile theme: fix #PSCFV-3878 : now the cart isn't reload with Jquery Mobile --- themes/default/mobile/js/opc.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/themes/default/mobile/js/opc.js b/themes/default/mobile/js/opc.js index 5189a2453..ab8707a94 100644 --- a/themes/default/mobile/js/opc.js +++ b/themes/default/mobile/js/opc.js @@ -27,7 +27,7 @@ function initEvent() data: 'controller=cart&add&id_product='+$(this).data('id-product')+'&ipa='+$(this).data('id-product-attribute')+'&op='+op+'&qty='+qty+'&id_address_delivery=0&token='+static_token, success: function() { - $.mobile.changePage(baseDir+'index.php?controller=order-opc', { reloadPage: true }); + window.location.href = baseDir+'index.php?controller=order-opc'; } }); } @@ -42,7 +42,7 @@ function initEvent() data: 'controller=order-opc&ajax=true&mobile_theme=true&method=updateAddressesSelected&id_address_delivery=' + $('#delivery-address-choice').val() + '&id_address_invoice=' + $('#invoice-address-choice').val() + '&token=' + static_token, success: function() { - $.mobile.changePage(baseDir+'index.php?controller=order-opc', { reloadPage: true }); + window.location.href = baseDir+'index.php?controller=order-opc'; } }); }); @@ -82,7 +82,7 @@ function initEvent() data: 'ajax=true&method=updateTOSStatusAndGetPayments&checked=' + checked + '&token=' + static_token, success: function(json) { - $.mobile.changePage(baseDir+'index.php?controller=order-opc', { reloadPage: true }); + window.location.href = baseDir+'index.php?controller=order-opc'; } }); }); @@ -129,7 +129,7 @@ function updateCarrierSection(elm) success: function(jsonData) { if (!elm.is('#gift')) - $.mobile.changePage(baseDir+'index.php?controller=order-opc', { reloadPage: true }); + window.location.href = baseDir+'index.php?controller=order-opc'; } }); }