fix issue with previews not being displayed if filename contains apostrophe

This commit is contained in:
Georg Ehrke 2015-02-22 16:51:16 +01:00
parent ef09e5d395
commit 8e02592e3f
1 changed files with 2 additions and 2 deletions

View File

@ -947,7 +947,7 @@
mime: mime,
etag: fileData.etag,
callback: function(url) {
iconDiv.css('background-image', 'url(' + url + ')');
iconDiv.css('background-image', 'url("' + url + '")');
}
});
}
@ -959,7 +959,7 @@
};
var previewUrl = this.generatePreviewUrl(urlSpec);
previewUrl = previewUrl.replace('(', '%28').replace(')', '%29');
iconDiv.css('background-image', 'url(' + previewUrl + ')');
iconDiv.css('background-image', 'url("' + previewUrl + '")');
}
}
return tr;