[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:
parent
0123c51997
commit
1e2a5ddfa6
|
@ -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");
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue