Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/gallery.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Paroz <github@oparoz.com>2015-06-01 00:10:44 +0300
committerOlivier Paroz <github@oparoz.com>2015-06-01 00:10:44 +0300
commit833b519f984282e42e26e169601a35727d2e4dd0 (patch)
treea5871c185e6c7bce476b0c43e8c1894a073fd5f4 /js/galleryfileaction.js
parent80c1016d8cd9bf2ab0e7e516f3074aea5c6a96a5 (diff)
Merge fixes
Diffstat (limited to 'js/galleryfileaction.js')
-rw-r--r--js/galleryfileaction.js10
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