diff options
| author | Goffin Simon <sig@odoo.com> | 2015-08-11 13:23:26 +0200 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2015-08-11 15:28:39 +0200 |
| commit | 71d51bb05fc8df01613e8c2da55b16da6bb553cd (patch) | |
| tree | 8d6beec1e333e04606e0c753b46ad06c1c81c4df /addons/website/static/src/js/website.snippets.editor.js | |
| parent | 0ea94b4b5a823fbc522832f4624e31d9ff3c3d26 (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.js | 2 |
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", ""); |
