aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/js/files.js
diff options
context:
space:
mode:
authorJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-14 13:01:52 +0200
committerJan-Christoph Borchardt <hey@jancborchardt.net>2013-08-14 13:01:52 +0200
commit4845ef5ac67b7785bf61f80359b1bc57b291c605 (patch)
treebb55933966b2150b85ab40d81d516dba136a706e /apps/files/js/files.js
parent14003b6d96396517875e39f46cd004ac867315bc (diff)
parentf9b281576726774c2109f8f909aceeb7320b4cae (diff)
downloadnextcloud-server-4845ef5ac67b7785bf61f80359b1bc57b291c605.tar.gz
nextcloud-server-4845ef5ac67b7785bf61f80359b1bc57b291c605.zip
Merge branch 'oc_preview' of github.com:owncloud/core into oc_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){