[FIX] don't mark view sections as dirty just because the snippets thing has inserted...
authorXavier Morel <xmo@openerp.com>
Mon, 24 Mar 2014 10:18:50 +0000 (11:18 +0100)
committerXavier Morel <xmo@openerp.com>
Mon, 24 Mar 2014 10:18:50 +0000 (11:18 +0100)
bzr revid: xmo@openerp.com-20140324101850-el3cfs0x4uln3u7v

addons/website/static/src/js/website.editor.js

index a5cf89b..7151987 100644 (file)
                 if (node.nodeName === 'BR' && node.getAttribute('type') === '_moz') {
                     // <br type="_moz"> appears when focusing RTE in FF, ignore
                     continue;
+                } else if (node.nodeName === 'DIV' && $(node).hasClass('oe_drop_zone')) {
+                    // ignore dropzone inserted by snippets
+                    continue
                 }
             }