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");
<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>