mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
Don't expand webm or YouTube videos on js/expand-all-images.js
This commit is contained in:
parent
bb81e9e0c3
commit
906611e7ac
@ -23,6 +23,14 @@ onready(function(){
|
||||
.text(_('Expand all images'))
|
||||
.click(function() {
|
||||
$('a img.post-image').each(function() {
|
||||
// Don't expand YouTube embeds
|
||||
if ($(this).parent().parent().hasClass('video-container'))
|
||||
return;
|
||||
|
||||
// or WEBM
|
||||
if (/^\/player\.php\?/.test($(this).parent().attr('href')))
|
||||
return;
|
||||
|
||||
if (!$(this).parent()[0].dataset.expanded)
|
||||
$(this).parent().click();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user