MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1,353: | Line 1,353: | ||
$(function () { | $(function () { | ||
// Mobile only | |||
if (mw.config.get('skin') !== 'minerva') { | if (mw.config.get('skin') !== 'minerva') { | ||
return; | return; | ||
} | } | ||
$('.pre-content.heading-holder | $('.pre-content.heading-holder').each(function () { | ||
if ($(this).find('a').length) { | // If breadcrumb paragraph exists | ||
$('#firstHeading').hide(); | if ($(this).children('p').find('a').length > 0) { | ||
// Hide page title | |||
$(this).find('#firstHeading').hide(); | |||
} | } | ||