open videos in gallery

This commit is contained in:
ed 2021-08-12 22:30:52 +02:00
parent 7a06ff480d
commit 53d720217b

View file

@ -2166,7 +2166,7 @@ var thegrid = (function () {
var oth = ebi(this.getAttribute('ref')),
href = this.getAttribute('href'),
aplay = ebi('a' + oth.getAttribute('id')),
is_img = /\.(gif|jpe?g|png|webp)(\?|$)/i.test(href),
is_img = /\.(gif|jpe?g|png|webp|webm|mp4)(\?|$)/i.test(href),
in_tree = null,
have_sel = QS('#files tr.sel'),
td = oth.closest('td').nextSibling,