diff --git a/source/js/Media/VMM.MediaElement.js b/source/js/Media/VMM.MediaElement.js index e49b7e9..936ad30 100644 --- a/source/js/Media/VMM.MediaElement.js +++ b/source/js/Media/VMM.MediaElement.js @@ -8,19 +8,22 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') { return this; }, - thumbnail: function(data, w, h) { - _w = 16; - _h = 24; + thumbnail: function(data, w, h, uid) { + var _w = 16, + _h = 24, + _uid = ""; + if (w != null && w != "") {_w = w}; if (h != null && h != "") {_h = h}; + if (uid != null && uid != "") {_uid = uid}; if (data.media != null && data.media != "") { - _valid = true; - var mediaElem = ""; - var m = VMM.MediaType(data.media); //returns an object with .type and .id + var _valid = true, + mediaElem = "", + m = VMM.MediaType(data.media); //returns an object with .type and .id + // CREATE MEDIA CODE if (m.type == "image") { - //mediaElem = "
"; mediaElem = ""; return mediaElem; } else if (m.type == "flickr") { @@ -53,6 +56,9 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') { } else if (m.type == "google-map") { mediaElem = ""; return mediaElem; + } else if (m.type == "googleplus") { + mediaElem = ""; + return mediaElem; } else if (m.type == "wikipedia") { mediaElem = ""; return mediaElem; @@ -64,14 +70,13 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') { return mediaElem; } else if (m.type == "unknown") { if (m.id.match("blockquote")) { - mediaElem = ""; + mediaElem = ""; } else { - mediaElem = ""; + mediaElem = ""; } return mediaElem; } else if (m.type == "website") { mediaElem = ""; - //mediaElem = ""; return mediaElem; } else { mediaElem = ""; @@ -81,13 +86,14 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') { }, create: function(data, secondary) { - //$mediacontainer = element; - var _valid = false; + var _valid = false, + loading_messege = "" + VMM.master_config.language.messages.loading + "
"; if (data.media != null && data.media != "") { - var mediaElem = "", captionElem = "", creditElem = "", _id = "", isTextMedia = false; - var m = VMM.MediaType(data.media); //returns an object with .type and .id - _valid = true; + var mediaElem = "", captionElem = "", creditElem = "", _id = "", isTextMedia = false, m; + + m = VMM.MediaType(data.media); //returns an object with .type and .id + _valid = true; // CREDIT if (data.credit != null && data.credit != "") { @@ -112,11 +118,11 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') { // GOOGLE DOCS } else if (m.type == "googledoc") { _id = "googledoc_" + VMM.Util.unique_ID(5); - mediaElem = "Loading Document
Loading YouTube video
Loading Tweet
Loading Sound
Loading Map
Loading Wikipedia