mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-11 05:46:09 +00:00
38474ed73f
* Remove deprecated module definitions * Remove unnecessary check for Minerva skin (this is only ever run by Minerva skin) * Move overlayManager to place it is first used * Make Skin::getMainMenu method redundant Change-Id: I17ea52172e7fae0a8f0e06b8418c7ed5bb01ef64
10 lines
349 B
JavaScript
10 lines
349 B
JavaScript
// This initialises EventLogging for main menu and some prominent links in the UI.
|
|
// This code should only be loaded on the Minerva skin, it does not apply to other skins.
|
|
( function ( M, $ ) {
|
|
var mainMenu = M.require( 'skins.minerva.scripts.top/mainMenu' );
|
|
|
|
$( function () {
|
|
mainMenu.enableLogging();
|
|
} );
|
|
}( mw.mobileFrontend, jQuery ) );
|