summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-10-28 11:22:34 +0100
committerVincent Petry <pvince81@owncloud.com>2013-10-28 14:14:55 +0100
commite62ca4ea4fc235d7ec767034a80889b2fa331e97 (patch)
tree545a37abaf90d57cccbb99fcf660331372a9ffc4 /core
parentc61d328ab9696a620b623fb2dfd1622eb0363dc4 (diff)
downloadnextcloud-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.js6
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 + ')');
});
}