MediaWiki:Gadget-MobileScript.js: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 37: Line 37:
  || $('.section-heading:nth-last-of-type(2) > .mw-headline:is(#Sources, #References)').length)
  || $('.section-heading:nth-last-of-type(2) > .mw-headline:is(#Sources, #References)').length)
$('section:nth-last-of-type(2) > .navbox').detach().appendTo('.navbox-section');
$('section:nth-last-of-type(2) > .navbox').detach().appendTo('.navbox-section');
if ($.trim($('.navbox-section').text()) == '') {
if ($.trim($('.navbox-section').text()) == '')
$('.navbox-heading').attr('style', 'display:none !important');
$('.navbox-section').attr('style', 'display:none !important');
$('.navbox-section').attr('style', 'display:none !important');
}
}
}
});
});