aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2013-08-14 11:38:52 +0200
committerGeorg Ehrke <developer@georgehrke.com>2013-08-14 11:38:52 +0200
commit3cbbe395eba76be37c16dcb00ac93760e965975e (patch)
tree714a1bccc23597edc307da3b7f6b04b7a062c5bf /apps/files/js/files.js
parent1c9d52774e165da3d916399510727de6b7c487fa (diff)
downloadnextcloud-server-3cbbe395eba76be37c16dcb00ac93760e965975e.tar.gz
nextcloud-server-3cbbe395eba76be37c16dcb00ac93760e965975e.zip
don't use hardcoded size for preview
Diffstat (limited to 'apps/files/js/files.js')
-rw-r--r--apps/files/js/files.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/files/js/files.js b/apps/files/js/files.js
index 8b66ed6747b..180c23cbfa4 100644
--- a/apps/files/js/files.js
+++ b/apps/files/js/files.js
@@ -825,7 +825,9 @@ function getMimeIcon(mime, ready){
getMimeIcon.cache={};
function getPreviewIcon(path, ready){
- ready(OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:36, y:36}));
+ var x = $('#filestable').data('preview-x');
+ var y = $('#filestable').data('preview-y');
+ ready(OC.Router.generate('core_ajax_preview', {file: encodeURIComponent(path), x:x, y:y}));
}
function getUniqueName(name){