MediaWiki:Common.js: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
No edit summary |
||
| Line 104: | Line 104: | ||
} | } | ||
}); | }); | ||
// Mobile: sections collapse by default, so lift the footer navbox out of the last one | |||
if (mw.config.get('skin') === 'minerva') { | |||
mw.hook('wikipage.content').add(function ($content) { | |||
$content.find('.panel.navbox').each(function () { | |||
var section = this.closest('section.collapsible-block'); | |||
if (section) { | |||
section.after(this); | |||
} | |||
}); | |||
}); | |||
} | |||