[FIX] website: fix for ie: add bootstrap class in website_sale and bind click for...
authorChristophe Matthieu <chm@openerp.com>
Tue, 25 Feb 2014 16:21:36 +0000 (17:21 +0100)
committerChristophe Matthieu <chm@openerp.com>
Tue, 25 Feb 2014 16:21:36 +0000 (17:21 +0100)
bzr revid: chm@openerp.com-20140225162136-5xdt7n498qxf9myw

addons/website/static/src/js/website.snippets.editor.js
addons/website_sale/views/website_sale.xml

index 23c5956..8fc642b 100644 (file)
 
         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");
index 9dd1ed7..f7317c9 100644 (file)
   <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>