Merge pull request #122 from mmn/html5_video_support_fix

Test against an element that actually will exist
This commit is contained in:
Hannes Mannerheim 2015-02-25 02:54:21 +01:00
commit 1ea39b765a

View File

@ -973,7 +973,7 @@ function expand_queet(q,doScrolling) {
}
// videos
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
if(typeof $(this).find('img').attr('data-big-thumbnail') != 'undefined') {