mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-11-24 22:25:27 +00:00
Merge "EventLogging modules should be soft dependencies"
This commit is contained in:
commit
67766539f9
|
@ -168,6 +168,9 @@
|
|||
* @method
|
||||
*/
|
||||
function logInit( editor ) {
|
||||
// If MobileFrontend is not available this will not be possible so
|
||||
// check first.
|
||||
mw.loader.using( 'mobile.loggingSchemas.edit' ).done( function () {
|
||||
mw.track( 'mf.schemaEdit', {
|
||||
action: 'init',
|
||||
type: 'section',
|
||||
|
@ -175,7 +178,9 @@
|
|||
editor: editor,
|
||||
editingSessionId: editorOptions.sessionId
|
||||
} );
|
||||
} );
|
||||
}
|
||||
|
||||
/**
|
||||
* Load source editor
|
||||
* @private
|
||||
|
|
|
@ -36,6 +36,8 @@
|
|||
* attributes on elements.
|
||||
*/
|
||||
enableLogging: function () {
|
||||
// Load the EventLogging module inside MobileFrontend if available
|
||||
mw.loader.using( 'mobile.loggingSchemas.mobileWebMainMenuClickTracking' );
|
||||
this.$( 'a' ).on( 'click', function () {
|
||||
var $link = $( this ),
|
||||
eventName = $link.data( 'event-name' );
|
||||
|
|
|
@ -233,8 +233,7 @@
|
|||
"dependencies": [
|
||||
"skins.minerva.mainMenu.icons",
|
||||
"skins.minerva.mainMenu.styles",
|
||||
"mobile.startup",
|
||||
"mobile.loggingSchemas.mobileWebMainMenuClickTracking"
|
||||
"mobile.startup"
|
||||
],
|
||||
"position": "bottom",
|
||||
"templates": {
|
||||
|
@ -360,8 +359,7 @@
|
|||
"mediawiki.ui.input",
|
||||
"mobile.startup",
|
||||
"skins.minerva.toggling",
|
||||
"mediawiki.jqueryMsg",
|
||||
"mobile.loggingSchemas.edit"
|
||||
"mediawiki.jqueryMsg"
|
||||
],
|
||||
"messages": {
|
||||
"0": "mobile-frontend-editor-disabled",
|
||||
|
|
Loading…
Reference in a new issue