[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:
jke-openerp 2014-02-01 21:47:41 +01:00
parent 5960d495e5
commit c18d350468
2 changed files with 5 additions and 1 deletions

View File

@ -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();

View File

@ -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/>