fix issue with previews not being displayed if filename contains apostrophe
This commit is contained in:
parent
ef09e5d395
commit
8e02592e3f
|
@ -947,7 +947,7 @@
|
||||||
mime: mime,
|
mime: mime,
|
||||||
etag: fileData.etag,
|
etag: fileData.etag,
|
||||||
callback: function(url) {
|
callback: function(url) {
|
||||||
iconDiv.css('background-image', 'url(' + url + ')');
|
iconDiv.css('background-image', 'url("' + url + '")');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -959,7 +959,7 @@
|
||||||
};
|
};
|
||||||
var previewUrl = this.generatePreviewUrl(urlSpec);
|
var previewUrl = this.generatePreviewUrl(urlSpec);
|
||||||
previewUrl = previewUrl.replace('(', '%28').replace(')', '%29');
|
previewUrl = previewUrl.replace('(', '%28').replace(')', '%29');
|
||||||
iconDiv.css('background-image', 'url(' + previewUrl + ')');
|
iconDiv.css('background-image', 'url("' + previewUrl + '")');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return tr;
|
return tr;
|
||||||
|
|
Loading…
Reference in New Issue