mirror of
https://github.com/nextcloud/server.git
synced 2026-03-08 18:28:16 +01:00
fix image viewer
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user