Skip to content
Snippets Groups Projects
Commit d17eba19 authored by Robin Appelman's avatar Robin Appelman
Browse files

fix image viewer

parent c5b31b00
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment