From 226f8763ccf81092ac107a668d0ab897a0d8f232 Mon Sep 17 00:00:00 2001 From: vChabot Date: Sat, 19 May 2012 13:47:07 +0000 Subject: [PATCH] [-] FO : Cart summary : quantity is fixed to 1 --- themes/default/js/cart-summary.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/themes/default/js/cart-summary.js b/themes/default/js/cart-summary.js index ce46eb1be..e7161198e 100644 --- a/themes/default/js/cart-summary.js +++ b/themes/default/js/cart-summary.js @@ -333,7 +333,10 @@ function deleteProductFromSummary(id) 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) { + if (textStatus != 'abort') + alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus); + } }); } @@ -418,7 +421,10 @@ function upQuantity(id, qty) 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) { + if (textStatus != 'abort') + alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus); + } }); } @@ -490,7 +496,10 @@ function downQuantity(id, qty) 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) { + if (textStatus != 'abort') + alert("TECHNICAL ERROR: unable to save update quantity \n\nDetails:\nError thrown: " + XMLHttpRequest + "\n" + 'Text status: ' + textStatus); + } }); }