From 71d51bb05fc8df01613e8c2da55b16da6bb553cd Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 11 Aug 2015 13:23:26 +0200 Subject: [PATCH] [FIX] website: background of the banner ";" is not always in the background style of the banner. opw:647083 --- addons/website/static/src/js/website.snippets.editor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js index eea9ee50c30..1d4e95f4435 100644 --- a/addons/website/static/src/js/website.snippets.editor.js +++ b/addons/website/static/src/js/website.snippets.editor.js @@ -1060,7 +1060,7 @@ }, background: function(type, value, $li) { if (value && value.length) { - this.$bg.attr("style", 'background-image: url(' + value + '); ' + (this.$bg.attr("style") || '').replace(/background-image:[^;]+;/, '')); + this.$bg.attr("style", 'background-image: url(' + value + '); ' + (this.$bg.attr("style") || '').replace(/background-image:[^;]+;?/, '')); this.$bg.addClass("oe_img_bg"); } else { this.$bg.css("background-image", "");