Permalink
Browse files

Fixing again parenthesis in background URL.

(cherry picked from commit 010a77d)
  • Loading branch information...
1 parent 86de079 commit 90d76056700658b2db4d6117ad4aa72a4d569505 @cdujeu cdujeu committed Jul 7, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/plugins/gui.ajax/res/js/ui/prototype/class.PreviewFactory.js
@@ -92,7 +92,7 @@ Class.create("PreviewFactory", {
var bgUrl = oImageToLoad.editorClass.prototype.getCoveringBackgroundSource(oImageToLoad.ajxpNode);
bgUrl = bgUrl.replace('(', '\\(').replace(')', '\\)').replace('\'', '\\\'');
oImageToLoad.mainObject.setStyle({
- backgroundImage:'url(' + oImageToLoad.editorClass.prototype.getCoveringBackgroundSource(oImageToLoad.ajxpNode) + ')',
+ backgroundImage:'url(' + bgUrl + ')',
backgroundSize : 'cover'
});
}else{

0 comments on commit 90d7605

Please sign in to comment.