mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 03:42:16 +08:00
add image dimensions & size in lightbox
This commit is contained in:
parent
c7741c9622
commit
cf44b9e9d9
|
@ -33,7 +33,11 @@ Discourse.Lightbox = {
|
|||
|
||||
image: {
|
||||
titleSrc: function(item) {
|
||||
return item.el.attr("title") + ' · <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(' · ');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user