From: Georg Ehrke Date: Wed, 14 Aug 2013 09:38:52 +0000 (+0200) Subject: don't use hardcoded size for preview X-Git-Tag: v6.0.0alpha2~235^2~36^2~2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3cbbe395eba76be37c16dcb00ac93760e965975e;p=nextcloud-server.git don't use hardcoded size for preview --- 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){ diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index e4348904671..311ada70dfd 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -59,7 +59,7 @@
t('Nothing in here. Upload something!'))?>
- +