diff --git a/addons/website/static/src/js/website.snippets.js b/addons/website/static/src/js/website.snippets.js index 815fa143f0d..85e8ede2981 100644 --- a/addons/website/static/src/js/website.snippets.js +++ b/addons/website/static/src/js/website.snippets.js @@ -73,10 +73,17 @@ $("body").on('DOMNodeInserted', hack_to_add_snippet_id); }, dom_filter: function (dom) { - var $errordom = $("#oe_manipulators, #website-top-navbar"); - return $(dom).filter(function () { - return $.contains($errordom, this) || $.inArray(this, $errordom); + var sdom = dom.split(','); + var exclude = ":not(#oe_manipulators):not(#website-top-navbar)"; + dom = ""; + _.each(sdom, function (val) { + val = val.replace(/^\s+|\s+$/g, ''); + dom += "body > " + exclude + " " + val + ", "; + val = val.split(" "); + dom += "body > "+ val.shift() + exclude + val.join(" ") + ", "; }); + dom = dom.replace(/,\s*$/g, ''); + return $(dom); }, start: function() { var self = this; diff --git a/addons/website/static/src/xml/website.snippets.xml b/addons/website/static/src/xml/website.snippets.xml index 3b2cf2ea383..8d471479570 100644 --- a/addons/website/static/src/xml/website.snippets.xml +++ b/addons/website/static/src/xml/website.snippets.xml @@ -99,7 +99,7 @@
Darken
-
+
Well
Manage your sales funnel with no effort with OpenERP CRM. Attract @@ -108,7 +108,7 @@
-
+
Quote

@@ -119,7 +119,7 @@

-
+
Panel