MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 14: Line 14:


/* Fix media negative margin bug for wide galleries */
/* Fix media negative margin bug for wide galleries */
$('.gallerybox .mediaContainer').each(function(i, obj) {
$('.gallerybox audio').each(function(i, obj) {
if ($(this).parent().css('margin-top') < '15px')
if ($(this).parent().css('margin-top') < '15px')
$(this).parent().css('margin', '15px auto');
$(this).parent().css('margin', '15px auto');