summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-04-19 17:42:15 +0200
committerRobin Appelman <icewind@owncloud.com>2012-04-22 21:27:20 +0200
commitd17eba19c1dc2be936cd00747e6cead33c19e59a (patch)
tree4e06e2b23a898f49fa7ba9ac147ae0e561350a3f
parentc5b31b001a12e4035555c6b507b6347bce90e272 (diff)
downloadnextcloud-server-d17eba19c1dc2be936cd00747e6cead33c19e59a.tar.gz
nextcloud-server-d17eba19c1dc2be936cd00747e6cead33c19e59a.zip
fix image viewer
-rw-r--r--apps/files_imageviewer/js/lightbox.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_imageviewer/js/lightbox.js b/apps/files_imageviewer/js/lightbox.js
index 6c97466e6d6..c0f569de351 100644
--- a/apps/files_imageviewer/js/lightbox.js
+++ b/apps/files_imageviewer/js/lightbox.js
@@ -18,7 +18,7 @@ $(document).ready(function() {
});
function viewImage(dir, file) {
- if(file.indexOf('.psd')){//can't view those
+ if(file.indexOf('.psd')>0){//can't view those
return;
}
var location=OC.filePath('files','ajax','download.php')+'?files='+file+'&dir='+dir;