[FIX] website_sale_options: remove reference to openerp variable
(missed it during previous forward-port)
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user