diff --git a/source/js/Core/Media/VMM.MediaElement.js b/source/js/Core/Media/VMM.MediaElement.js index 1ad3d7e..0bc129a 100644 --- a/source/js/Core/Media/VMM.MediaElement.js +++ b/source/js/Core/Media/VMM.MediaElement.js @@ -21,17 +21,18 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') { if (h != null && h != "") {_h = h}; if (uid != null && uid != "") {_uid = uid}; - if (data.media != null && data.media != "") { + + if (data.thumbnail != null && data.thumbnail != "") { + trace("CUSTOM THUMB"); + mediaElem = "
"; + return mediaElem; + } else if (data.media != null && data.media != "") { var _valid = true, mediaElem = "", m = VMM.MediaType(data.media); //returns an object with .type and .id // DETERMINE THUMBNAIL OR ICON - if (data.thumbnail != null && data.thumbnail != "") { - trace("CUSTOM THUMB"); - mediaElem = "
"; - return mediaElem; - } else if (m.type == "image") { + if (m.type == "image") { mediaElem = "
"; return mediaElem; } else if (m.type == "flickr") {