mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-25 23:05:35 +00:00
3b4b0c3c89
Disabled by default, enabled with $wgVisualEditorEnableGenderSurvey. Change-Id: I2b4aba6a95a33474c3e68423d478aa78e57d86ad
15 lines
367 B
JavaScript
15 lines
367 B
JavaScript
/*global mw */
|
|
mw.loader.using( 'schema.GenderSurvey', function () {
|
|
ve.init.mw.genderSurvey = {
|
|
logAndEndTour: function ( buttonType ) {
|
|
mw.eventLog.logEvent( 'GenderSurvey', {
|
|
userId: mw.config.get( 'wgUserId' ),
|
|
buttonType: buttonType
|
|
} );
|
|
mw.guidedTour.endTour( 'vegendersurvey' );
|
|
}
|
|
};
|
|
|
|
mw.guidedTour.launchTour( 'vegendersurvey' );
|
|
} );
|