diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-10-28 11:22:34 +0100 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-10-28 14:14:55 +0100 |
commit | e62ca4ea4fc235d7ec767034a80889b2fa331e97 (patch) | |
tree | 545a37abaf90d57cccbb99fcf660331372a9ffc4 /core | |
parent | c61d328ab9696a620b623fb2dfd1622eb0363dc4 (diff) | |
download | nextcloud-server-e62ca4ea4fc235d7ec767034a80889b2fa331e97.tar.gz nextcloud-server-e62ca4ea4fc235d7ec767034a80889b2fa331e97.zip |
Append file etag to preview URLs
Fixes #5534
Diffstat (limited to 'core')
-rw-r--r-- | core/js/oc-dialogs.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/js/oc-dialogs.js b/core/js/oc-dialogs.js index a9b40918ca7..f4e3ec01447 100644 --- a/core/js/oc-dialogs.js +++ b/core/js/oc-dialogs.js @@ -294,14 +294,14 @@ var OCdialogs = { conflict.find('.replacement .mtime').text(formatDate(replacement.lastModifiedDate)); } var path = getPathForPreview(original.name); - lazyLoadPreview(path, original.mime, function(previewpath){ + Files.lazyLoadPreview(path, original.mime, function(previewpath){ conflict.find('.original .icon').css('background-image','url('+previewpath+')'); - }, 96, 96); + }, 96, 96, original.etag); getCroppedPreview(replacement).then( function(path){ conflict.find('.replacement .icon').css('background-image','url(' + path + ')'); }, function(){ - getMimeIcon(replacement.type,function(path){ + Files.getMimeIcon(replacement.type,function(path){ conflict.find('.replacement .icon').css('background-image','url(' + path + ')'); }); } |