[FIX] website: fix for ie: add bootstrap class in website_sale and bind click for editor

bzr revid: chm@openerp.com-20140225162136-5xdt7n498qxf9myw
This commit is contained in:
Christophe Matthieu 2014-02-25 17:21:36 +01:00
parent 0123c51997
commit 1e2a5ddfa6
2 changed files with 2 additions and 8 deletions

View File

@ -213,13 +213,7 @@
bind_snippet_click_editor: function () {
var self = this;
var snipped_event_flag = false;
$("#wrapwrap").on('click', function (event) {
if (snipped_event_flag) {
return;
}
snipped_event_flag = true;
setTimeout(function () {snipped_event_flag = false;}, 0);
$(document).on('click', "#wrapwrap", function (event) {
var $target = $(event.srcElement);
if (!$target.attr("data-snippet-id")) {
$target = $target.parents("[data-snippet-id]:first");

View File

@ -231,7 +231,7 @@
<xpath expr="//div[@class='product_price']" position="inside">
<form action="/shop/add_cart/" method="post" style="display: inline-block;">
<input name="product_id" t-att-value="product.product_variant_ids[0].id" type="hidden"/>
<button type="submit" class="fa fa-shopping-cart"/>
<button type="submit" class="btn btn-default btn-xs fa fa-shopping-cart"/>
</form>
</xpath>
</template>