fix image viewer

This commit is contained in:
Robin Appelman 2012-04-19 17:42:15 +02:00
parent c5b31b001a
commit d17eba19c1
1 changed files with 1 additions and 1 deletions

View File

@ -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;