img.attr('width', 128); | img.attr('width', 128); | ||||
img.appendTo('#imgframe'); | img.appendTo('#imgframe'); | ||||
} | } | ||||
else { | |||||
else if (previewSupported === 'true') { | |||||
$('#imgframe > video').attr('poster', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params)); | $('#imgframe > video').attr('poster', OC.filePath('files_sharing', 'ajax', 'publicpreview.php') + '?' + OC.buildQueryString(params)); | ||||
} | } | ||||