MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 5: Line 5:
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');
});
/* Remove mobile title tags on desktop main page */
$(function() {
if (mw.config.get('wgTitle') === 'Main Page') {
$('div[id^="mf-"]').each(function(i, obj) {
$(this).removeAttr('title');
});
}
});
});