[FIX] website_sale: force refresh cart without cache when product removed

Firefox keep in cache the value of input.
So, when we delete a product line and call location.reload(), firefox
remember the value and state of this input and don't refresh with the new
value.

Adding True as param (forceReload) fixes the problem since it doesn't
use old value. Another way will be to add autocomplete="off".

ForcedReload (Optional): Is a Boolean flag, which, when it is true, causes the
page to always be reloaded from the server. If it is false or not specified,
the browser may reload the page from its cache.

This closes #7888 #3342 #7491
This commit is contained in:
Jeremy Kersten 2015-08-07 15:06:16 +02:00
parent 1388c0c108
commit 5a53d7d8b9
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ $('.oe_website_sale').each(function () {
return;
}
if (!data.quantity) {
location.reload();
location.reload(true);
return;
}
var $q = $(".my_cart_quantity");