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:
authorRobin Appelman <robin@icewind.nl>2014-12-02 19:11:13 +0300
committerRobin Appelman <robin@icewind.nl>2014-12-02 19:11:13 +0300
commitab63f9eacacfc49d5b5742df78131926b1392224 (patch)
tree851b7d8fe02dbd22a2c091611ac048d2701d5cb5
parent549cba4eb872760c86488fbfd35d525815838a9c (diff)
parente35628b8e9f821865b6b510d5064df6f129bd9cd (diff)
Merge pull request #120 from owncloud/ignore_tiff_stable7v7.0.6RC2v7.0.6RC1v7.0.6v7.0.5v7.0.4RC2v7.0.4
ignore tiff
-rw-r--r--js/slideshow.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/slideshow.js b/js/slideshow.js
index eaf2b9f8..e3a3ea14 100644
--- a/js/slideshow.js
+++ b/js/slideshow.js
@@ -371,6 +371,9 @@ $(document).ready(function () {
for (var i = 0; i < files.length; i++) {
var file = files[i];
if (file.mimetype && file.mimetype.indexOf('image') >= 0) {
+ if (file.mimetype === 'image/tiff') {
+ continue;
+ }
if (file.mimetype === 'image/svg+xml') {
imageUrl = OCA.Files.Files.getDownloadUrl(file.name, dir);
} else {
@@ -406,5 +409,6 @@ $(document).ready(function () {
jQuery.fn.slideShow.call(images, $('#slideshow'), start, {fallBacks: fallBacks});
});
OCA.Files.fileActions.setDefault('image', 'View');
+ OCA.Files.fileActions.setDefault('image/tiff', 'Download');
}
});