MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 514: | Line 514: | ||
if(gallery.length) { | if(gallery.length) { | ||
// In gallery | // In gallery | ||
$(this).attr('data-title', $(this).attr('data-title') + '<p>' + $(this).attr('title') + '</p>'); | |||
var gID = gallery.attr('id'); | var gID = gallery.attr('id'); | ||
if(galleryBuckets[gID] == null) { | if(galleryBuckets[gID] == null) { | ||
galleryBuckets[gID] = $(this); | galleryBuckets[gID] = $(this); | ||
} else { | } else { | ||
galleryBuckets[gID].add($(this)); | galleryBuckets[gID] = galleryBuckets[gID].add($(this)); | ||
} | } | ||
} else { | } else { |