Test against an element that actually will exist
This commit is contained in:
parent
e2fad3fe05
commit
cbe84b4e21
|
@ -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