diff options
Diffstat (limited to 'js/galleryfileaction.js')
-rw-r--r-- | js/galleryfileaction.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/js/galleryfileaction.js b/js/galleryfileaction.js index 5d2a7c42..e8205f2e 100644 --- a/js/galleryfileaction.js +++ b/js/galleryfileaction.js @@ -69,18 +69,18 @@ var galleryFileAction = { if (galleryFileAction.mediaTypes[file.mimetype]) { /* jshint camelcase: false */ var params = { - file: dir + file.name, + width: width, + height: height, c: file.etag, - x: width, - y: height, requesttoken: oc_requesttoken }; - imageUrl = galleryFileAction.buildGalleryUrl('preview', '', params); - downloadUrl = galleryFileAction.buildGalleryUrl('download', '', params); + imageUrl = galleryFileAction.buildGalleryUrl('preview', '/' + file.id, params); + downloadUrl = imageUrl + '&download'; images.push({ name: file.name, path: dir + file.name, + fileId: file.id, mimeType: file.mimetype, url: imageUrl, downloadUrl: downloadUrl |