[FIX] website: background of the banner

";" is not always in the background style of the banner.

opw:647083
This commit is contained in:
Goffin Simon
2015-08-11 15:28:39 +02:00
parent 0ea94b4b5a
commit 71d51bb05f
@@ -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", "");