summaryrefslogtreecommitdiff
path: root/addons/website/static/src/js/website.snippets.editor.js
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2015-08-11 13:23:26 +0200
committerGoffin Simon <sig@odoo.com>2015-08-11 15:28:39 +0200
commit71d51bb05fc8df01613e8c2da55b16da6bb553cd (patch)
tree8d6beec1e333e04606e0c753b46ad06c1c81c4df /addons/website/static/src/js/website.snippets.editor.js
parent0ea94b4b5a823fbc522832f4624e31d9ff3c3d26 (diff)
[FIX] website: background of the banner
";" is not always in the background style of the banner. opw:647083
Diffstat (limited to 'addons/website/static/src/js/website.snippets.editor.js')
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js2
1 files changed, 1 insertions, 1 deletions
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", "");