]> source.dussan.org Git - nextcloud-server.git/commitdiff
dont try to view psd files
authorRobin Appelman <icewind@owncloud.com>
Sun, 15 Apr 2012 14:26:08 +0000 (16:26 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sun, 15 Apr 2012 14:26:08 +0000 (16:26 +0200)
apps/files_imageviewer/js/lightbox.js

index 94743aa85e049808d884838dd6d9e130a7824bd5..6c97466e6d6ceddf010ee51c01faf952cfce586d 100644 (file)
@@ -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,