[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: jke@openerp.com-20140201204741-ygdxaauq0m5axttg
This commit is contained in:
parent
5960d495e5
commit
c18d350468
|
@ -60,6 +60,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();
|
||||
|
|
|
@ -331,7 +331,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"/>
|
||||
<p t-field="product.description_sale" class="text-muted"/>
|
||||
<hr/>
|
||||
|
|
Loading…
Reference in New Issue