aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-07-20 16:51:28 +0200
committerGeorg Ehrke <developer@georgehrke.com>2015-09-20 12:38:21 +0200
commit04b14df35ca05e49194534a7c14ee2ab9199e4bb (patch)
tree28be4b928192164c746824cc8fe52738f492c211 /core
parentbbd1e996050fee80795d0e656da98b6451232c6c (diff)
downloadnextcloud-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.js4
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){