diff options
author | Olivier Paroz <github@oparoz.com> | 2015-07-20 16:51:28 +0200 |
---|---|---|
committer | Georg Ehrke <developer@georgehrke.com> | 2015-09-20 12:38:21 +0200 |
commit | 04b14df35ca05e49194534a7c14ee2ab9199e4bb (patch) | |
tree | 28be4b928192164c746824cc8fe52738f492c211 /core | |
parent | bbd1e996050fee80795d0e656da98b6451232c6c (diff) | |
download | nextcloud-server-04b14df35ca05e49194534a7c14ee2ab9199e4bb.tar.gz nextcloud-server-04b14df35ca05e49194534a7c14ee2ab9199e4bb.zip |
Fix preview of old file on public upload conflicts
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index 52ed34f61ec..361cf2dff67 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -388,9 +388,9 @@ var OCdialogs = { c: original.etag, forceIcon: 0 }; - var previewpath = OC.generateUrl('/core/preview.png?') + $.param(urlSpec); + var previewpath = Files.generatePreviewUrl(urlSpec); // Escaping single quotes - previewpath = previewpath.replace(/'/g, "%27") + previewpath = previewpath.replace(/'/g, "%27"); $originalDiv.find('.icon').css({"background-image": "url('" + previewpath + "')"}); getCroppedPreview(replacement).then( function(path){ |