Merge pull request #122 from mmn/html5_video_support_fix
Test against an element that actually will exist
This commit is contained in:
commit
1ea39b765a
|
@ -973,7 +973,7 @@ function expand_queet(q,doScrolling) {
|
||||||
}
|
}
|
||||||
// videos
|
// videos
|
||||||
else if($.inArray(attachment_mimetype, ['video/mp4', 'video/ogg', 'video/quicktime', 'video/webm']) >= 0) {
|
else if($.inArray(attachment_mimetype, ['video/mp4', 'video/ogg', 'video/quicktime', 'video/webm']) >= 0) {
|
||||||
if(q.children('.queet').find('.expanded-content').children('.media').children('a[href="' + attachment_title + '"]').length < 1) { // not if already showed
|
if(q.children('.queet').find('.expanded-content').children('.media').children('video').children('source[href="' + attachment_title + '"]').length < 1) { // not if already showed
|
||||||
|
|
||||||
// local attachment with a thumbnail
|
// local attachment with a thumbnail
|
||||||
if(typeof $(this).find('img').attr('data-big-thumbnail') != 'undefined') {
|
if(typeof $(this).find('img').attr('data-big-thumbnail') != 'undefined') {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user