Fix for parenthesis

This commit is contained in:
Olivier Paroz 2015-05-29 17:49:26 +02:00
parent 4e364311f1
commit 6aeaa6954b
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ var OCdialogs = {
forceIcon: 0
};
var previewpath = OC.generateUrl('/core/preview.png?') + $.param(urlSpec);
$originalDiv.find('.icon').css('background-image','url('+previewpath+')');
$originalDiv.find('.icon').css({"background-image": "url('" + previewpath + "')"});
getCroppedPreview(replacement).then(
function(path){
$replacementDiv.find('.icon').css('background-image','url(' + path + ')');