mediawiki-extensions-Visual.../modules/ve/init/mw/ve.init.mw.genderSurvey.js
Matthew Flaschen 3b4b0c3c89 Add GuidedTour survey about user gender
Disabled by default, enabled with $wgVisualEditorEnableGenderSurvey.

Change-Id: I2b4aba6a95a33474c3e68423d478aa78e57d86ad
2013-07-02 00:13:38 +02:00

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' );
} );