mediawiki-extensions-Visual.../modules/ve-mw/init/ve.init.mw.genderSurvey.js

15 lines
367 B
JavaScript
Raw Normal View History

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