dont try to view psd files

This commit is contained in:
Robin Appelman 2012-04-15 16:26:08 +02:00
parent c0bdad5893
commit 9ac65c51f5
1 changed files with 3 additions and 0 deletions

View File

@ -18,6 +18,9 @@ $(document).ready(function() {
});
function viewImage(dir, file) {
if(file.indexOf('.psd')){//can't view those
return;
}
var location=OC.filePath('files','ajax','download.php')+'?files='+file+'&dir='+dir;
$.fancybox({
"href": location,