From a2af140a18e6e4c64554e7052eff41026a7fa8d3 Mon Sep 17 00:00:00 2001 From: Hannes Mannerheim Date: Thu, 5 Mar 2015 13:04:27 +0100 Subject: [PATCH] mistake --- js/dom-functions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/dom-functions.js b/js/dom-functions.js index 15c33ce..a201a65 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -979,7 +979,7 @@ function expand_queet(q,doScrolling) { // attachments in the content link to /attachment/etc url and not direct to image/video, link is in title if(typeof attachment_title != 'undefined') { // images - if($.inArray(attachment_mimetype, ['image/gif', 'image/jpeg', 'image/png', , 'image/svg+xml']) >= 0 + if($.inArray(attachment_mimetype, ['image/gif', 'image/jpeg', 'image/png', 'image/svg+xml']) >= 0 || $.inArray(attachment_title_extension, ['jpeg', 'gif', 'jpg','png','svg']) >= 0) { if(q.children('.queet').find('.expanded-content').children('.media').children('a[href="' + attachment_title + '"]').length < 1) { // not if already showed