2019-07-22 17:11:15 +00:00
|
|
|
// 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.
|
|
|
|
// @deprecated and to be removed the moment that T220016 is live.
|
2019-07-30 22:40:55 +00:00
|
|
|
var mainMenu = require( './menu.js' ),
|
|
|
|
logging = require( './menu/schema.js' );
|
2019-07-22 17:11:15 +00:00
|
|
|
|
|
|
|
module.exports = function () {
|
2019-07-30 22:40:55 +00:00
|
|
|
mw.loader.using( [
|
|
|
|
'ext.eventLogging'
|
|
|
|
] ).then( function () {
|
|
|
|
logging();
|
|
|
|
mainMenu.enableLogging();
|
|
|
|
} );
|
2019-07-22 17:11:15 +00:00
|
|
|
};
|