mediawiki-extensions-Visual.../modules/ve-mw/init/tours/vegendersurvey.js
Matthew Flaschen 8f63a5e38e Bump gender survey width to 475.
Change-Id: I37336f1d8f962e31d6a241106384c542879f6e67
2013-07-11 18:06:04 -04:00

32 lines
911 B
JavaScript

/*global mw */
( function ( $, gt ) {
gt.defineTour( {
name: 'vegendersurvey',
isSinglePage: true,
// shouldLog tells GuidedTour to provide additional logging (step impressions, etc.)
shouldLog: true,
steps: [ {
titlemsg: 'guidedtour-tour-vegendersurvey-title',
descriptionmsg: 'guidedtour-tour-vegendersurvey-description',
allowAutomaticOkay: false,
overlay: true,
width: 475,
buttons: [ {
namemsg: 'guidedtour-tour-vegendersurvey-male',
onclick: function () {
ve.init.mw.genderSurvey.logAndEndTour( 'male' );
}
}, {
namemsg: 'guidedtour-tour-vegendersurvey-female',
onclick: function () {
ve.init.mw.genderSurvey.logAndEndTour( 'female' );
}
}, {
namemsg: 'guidedtour-tour-vegendersurvey-optout',
onclick: function () {
ve.init.mw.genderSurvey.logAndEndTour( 'opt-out' );
}
} ]
} ]
} );
} ( jQuery, mw.guidedTour ) );