aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/filelist.js
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-23 23:19:21 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-23 23:19:21 +0200
commit13e34649bfb1a7d15833c209d629e3540d3366ef (patch)
treebb4680a9b677afda406edca24d6ced62ae4a4559 /apps/files/js/filelist.js
parent6ffa2a28d0ae63b061e1e88ee3b12726d31c3f9d (diff)
downloadnextcloud-server-13e34649bfb1a7d15833c209d629e3540d3366ef.tar.gz
nextcloud-server-13e34649bfb1a7d15833c209d629e3540d3366ef.zip
move path generation for previews to dedicated function
Diffstat (limited to 'apps/files/js/filelist.js')
-rw-r--r--apps/files/js/filelist.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 41245c00ba6..e3e985af38b 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -185,7 +185,7 @@ var FileList={
if (id != null) {
tr.attr('data-id', id);
}
- var path = $('#dir').val()+'/'+name;
+ var path = getPathForPreview(name);
lazyLoadPreview(path, mime, function(previewpath){
tr.find('td.filename').attr('style','background-image:url('+previewpath+')');
});