[FIX] Fix bug where button with contenteditable does not work in cross browser. Fix : replace tag 'button' by 'a' with class 'a-submit'
bzr revid: chm@openerp.com-20140307122223-5ka2xiiibqmzqshv
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
{
|
||||
title: "click on add to cart",
|
||||
waitFor: 'input[name="product_id"]:eq(1)[checked]',
|
||||
element: 'form[action="/shop/add_cart/"] button',
|
||||
element: 'form[action="/shop/add_cart/"] .btn',
|
||||
},
|
||||
{
|
||||
title: "add suggested",
|
||||
|
||||
@@ -61,6 +61,10 @@ $(document).ready(function () {
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.a-submit').on('click', function () {
|
||||
$(this).closest('form').submit();
|
||||
});
|
||||
|
||||
// change price when they are variants
|
||||
$('form.js_add_cart_json label').on('mouseup', function (ev) {
|
||||
ev.preventDefault();
|
||||
|
||||
@@ -336,7 +336,7 @@
|
||||
}'/>
|
||||
</h4>
|
||||
</div>
|
||||
<button class="btn btn-primary btn-lg mt8">Add to Cart</button>
|
||||
<a class="btn btn-danger btn-lg mt8 a-submit">Add to Cart</a>
|
||||
<hr t-if="product.description_sale"/>
|
||||
<div><p t-field="product.description_sale" class="text-muted"/></div>
|
||||
<hr/>
|
||||
|
||||
Reference in New Issue
Block a user