fix image viewer
This commit is contained in:
parent
c5b31b001a
commit
d17eba19c1
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue