add image dimensions & size in lightbox

This commit is contained in:
Régis Hanol 2013-12-12 17:39:20 +01:00
parent c7741c9622
commit cf44b9e9d9

View File

@ -33,7 +33,11 @@ Discourse.Lightbox = {
image: {
titleSrc: function(item) {
return item.el.attr("title") + ' &middot; <a class="image-source-link" href="' + item.src + '" target="_blank">' + I18n.t("lightbox.download") + '</a>';
return [
item.el.attr("title"),
$("span.informations", item.el).text(),
'<a class="image-source-link" href="' + item.src + '" target="_blank">' + I18n.t("lightbox.download") + '</a>'
].join(' &middot; ');
}
}