From 59a7455711029ac769e9f21783c7b455417e7d37 Mon Sep 17 00:00:00 2001 From: Matjaz Gregoric Date: Fri, 20 Mar 2015 20:02:49 +0800 Subject: [PATCH] Wrap bg image src in url(...). Background image style property needs to be given as url(...src...) to be valid CSS. --- drag_and_drop_v2/public/js/view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drag_and_drop_v2/public/js/view.js b/drag_and_drop_v2/public/js/view.js index 0648ece64..04cd2dc96 100644 --- a/drag_and_drop_v2/public/js/view.js +++ b/drag_and_drop_v2/public/js/view.js @@ -88,7 +88,7 @@ h('div.close.icon-remove-sign.fa-times-circle'), h('p.popup-content', {innerHTML: ctx.popup_html}) ]), - h('div.target-img', {style: {backgroundImage: ctx.target_img_src}}, + h('div.target-img', {style: {backgroundImage: 'url(' + ctx.target_img_src + ')'}}, renderCollection(zoneTemplate, ctx.zones, ctx)) ]), h('div.clear')