Added Upstream Patch for website_sale_options
This commit is contained in:
parent
9d65bd343f
commit
b1faf35d76
@ -9,7 +9,7 @@ require('website_sale.website_sale');
|
|||||||
$('.oe_website_sale #add_to_cart, .oe_website_sale #products_grid .a-submit')
|
$('.oe_website_sale #add_to_cart, .oe_website_sale #products_grid .a-submit')
|
||||||
.off('click')
|
.off('click')
|
||||||
.removeClass('a-submit')
|
.removeClass('a-submit')
|
||||||
.click(function (event) {
|
.click(_.debounce(function (event) {
|
||||||
var $form = $(this).closest('form');
|
var $form = $(this).closest('form');
|
||||||
var quantity = parseFloat($form.find('input[name="add_qty"]').val() || 1);
|
var quantity = parseFloat($form.find('input[name="add_qty"]').val() || 1);
|
||||||
var product_id = parseInt($form.find('input[type="hidden"][name="product_id"], input[type="radio"][name="product_id"]:checked').first().val(),10);
|
var product_id = parseInt($form.find('input[type="hidden"][name="product_id"], input[type="radio"][name="product_id"]:checked').first().val(),10);
|
||||||
@ -96,6 +96,6 @@ $('.oe_website_sale #add_to_cart, .oe_website_sale #products_grid .a-submit')
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
return false;
|
return false;
|
||||||
});
|
}, 200, true));
|
||||||
|
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user