diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-04-15 16:26:08 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-04-15 16:26:08 +0200 |
commit | 9ac65c51f5bcc06c400e64ff7db53adc5be80c84 (patch) | |
tree | bebd188dba53597b5e10392191544d415bdae85d /apps | |
parent | c0bdad58932a29a1f21909e959416369a790fa8d (diff) | |
download | nextcloud-server-9ac65c51f5bcc06c400e64ff7db53adc5be80c84.tar.gz nextcloud-server-9ac65c51f5bcc06c400e64ff7db53adc5be80c84.zip |
dont try to view psd files
Diffstat (limited to 'apps')
-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, |