Move function to fonction.php and Add video Thumbnail

This commit is contained in:
Imperator
2022-02-16 17:00:09 +01:00
parent 0f2f5172ac
commit 5a9fdeff2d
4 changed files with 257 additions and 233 deletions

View File

@ -166,7 +166,7 @@ function listFile() {
title: title,
html: '<i class="fa fa-' + value.type + ' type" aria-hidden="true"></i> ' + title
});
if (value.type == "file-image")
if (['file-image', 'file-video'].indexOf(value.type) > -1)
a.addClass('preview');
a.appendTo('.list');
$('.list').append('<a class="fa fa-times del" href="delete.php?file=' + encode + '"></a><br>');