Browse Source

Support @alt for images.

Add an alt attribute if alt data is provided.
pull/818/head
Liam Morland 9 years ago
parent
commit
33980f9a7a
  1. 6
      source/js/Core/Media/VMM.MediaElement.js

6
source/js/Core/Media/VMM.MediaElement.js

@ -122,7 +122,11 @@ if(typeof VMM != 'undefined' && typeof VMM.MediaElement == 'undefined') {
} }
// IMAGE // IMAGE
if (m.type == "image") { if (m.type == "image") {
mediaElem = "<div class='media-image media-shadow'><img src='" + m.id + "' class='media-image'></div>"; var alt = "";
if (data.alt) {
alt = " alt='" + data.alt + "'";
}
mediaElem = "<div class='media-image media-shadow'><img" + alt + " src='" + m.id + "' class='media-image'></div>";
// FLICKR // FLICKR
} else if (m.type == "flickr") { } else if (m.type == "flickr") {
//mediaElem = "<div class='media-image media-shadow' id='" + uid + "'>" + loading_messege + "</div>"; //mediaElem = "<div class='media-image media-shadow' id='" + uid + "'>" + loading_messege + "</div>";

Loading…
Cancel
Save