diff options
-rw-r--r-- | apps/files_imageviewer/js/lightbox.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js index 94743aa85e0..6c97466e6d6 100644 --- a/apps/files_imageviewer/js/lightbox.js +++ b/apps/files_imageviewer/js/lightbox.js @@ -18,6 +18,9 @@ $(document).ready(function() { }); function viewImage(dir, file) { + if(file.indexOf('.psd')){//can't view those + return; + } var location=OC.filePath('files','ajax','download.php')+'?files='+file+'&dir='+dir; $.fancybox({ "href": location, |