[FIX] website_sale_options: remove reference to openerp variable

(missed it during previous forward-port)
This commit is contained in:
Christophe Simonis
2015-03-26 11:15:00 +01:00
parent 54c7eb4403
commit 64b5a7e537
@@ -33,7 +33,7 @@ $('.oe_website_sale #add_to_cart, .oe_website_sale #products_grid .a-submit')
var $a = $(this);
$form.ajaxSubmit({
url: '/shop/cart/update_option',
data: {lang: openerp.website.get_context().lang},
data: {lang: website.get_context().lang},
success: function (quantity) {
if (!$a.hasClass('js_goto_shop')) {
window.location.href = window.location.href.replace(/shop([\/?].*)?$/, "shop/cart");