[-] FO : #PSTEST-437 - Fixed problem with refreshing carriers options
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@12403 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
1 parent
bfe21a0bc4
commit
7088b1b595
1 file changed
+11
-12
@@ -105,9 +105,8 @@ function changeAddressDelivery(obj)
|
|||||||
updateCartSummary(jsonData.summary);
|
updateCartSummary(jsonData.summary);
|
||||||
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
||||||
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
||||||
if (jsonData.carriers != null)
|
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
||||||
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
getCarrierListAndUpdate();
|
||||||
getCarrierListAndUpdate();
|
|
||||||
|
|
||||||
// @todo reverse the remove order
|
// @todo reverse the remove order
|
||||||
// This effect remove the current line, but it's better to remove the other one, and refresshing this one
|
// This effect remove the current line, but it's better to remove the other one, and refresshing this one
|
||||||
@@ -225,6 +224,9 @@ function updateQty(val)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
$('input[name='+ id +']').val($('input[name='+ id +'_hidden]').val());
|
$('input[name='+ id +']').val($('input[name='+ id +'_hidden]').val());
|
||||||
|
|
||||||
|
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
||||||
|
getCarrierListAndUpdate();
|
||||||
}
|
}
|
||||||
|
|
||||||
function deleteProductFromSummary(id)
|
function deleteProductFromSummary(id)
|
||||||
@@ -296,9 +298,8 @@ function deleteProductFromSummary(id)
|
|||||||
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
||||||
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
||||||
updateCustomizedDatas(jsonData.customizedDatas);
|
updateCustomizedDatas(jsonData.customizedDatas);
|
||||||
if (jsonData.carriers != null)
|
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
||||||
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
getCarrierListAndUpdate();
|
||||||
getCarrierListAndUpdate();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}
|
error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}
|
||||||
@@ -347,9 +348,8 @@ function upQuantity(id, qty)
|
|||||||
updateCartSummary(jsonData.summary);
|
updateCartSummary(jsonData.summary);
|
||||||
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
||||||
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
||||||
if (jsonData.carriers != null)
|
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
||||||
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
getCarrierListAndUpdate();
|
||||||
getCarrierListAndUpdate();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}
|
error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}
|
||||||
@@ -407,9 +407,8 @@ function downQuantity(id, qty)
|
|||||||
updateCartSummary(jsonData.summary);
|
updateCartSummary(jsonData.summary);
|
||||||
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
updateHookShoppingCart(jsonData.HOOK_SHOPPING_CART);
|
||||||
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
updateHookShoppingCartExtra(jsonData.HOOK_SHOPPING_CART_EXTRA);
|
||||||
if (jsonData.carriers != null)
|
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
||||||
if (typeof(getCarrierListAndUpdate) != 'undefined')
|
getCarrierListAndUpdate();
|
||||||
getCarrierListAndUpdate();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}
|
error: function(XMLHttpRequest, textStatus, errorThrown) {alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus);}
|
||||||
|
|||||||
Reference in new issue
Block a user