Page MenuHomeWickedGov Phorge

checkuserinvestigateform.js
No OneTemporary

Size
890 B
Referenced Files
None
Subscribers
None

checkuserinvestigateform.js

/*
* Special:Invesitgate form guided tour
*/
( function ( gt ) {
if ( mw.config.get( 'wgCanonicalSpecialPageName' ) !== 'Investigate' ) {
return;
}
if ( $( '#targets' ).length === 0 ) {
return;
}
const tour = new gt.TourBuilder( {
name: 'checkuserinvestigateform',
shouldLog: true,
isSinglePage: false
} );
tour.firstStep( {
name: 'targets',
titlemsg: 'checkuser-investigate-tour-targets-title',
description: mw.message( 'checkuser-investigate-tour-targets-desc', mw.config.get( 'wgCheckUserInvestigateMaxTargets' ) ).parse(),
attachTo: '#targets',
position: 'bottom',
closeOnClickOutside: false,
overlay: true,
onHide: function () {
// Api.saveOption will save a string instead of a bool. :(
( new mw.Api() ).saveOption( 'checkuser-investigate-form-tour-seen', 1 );
},
buttons: [
{
action: 'end'
}
]
} );
}( mw.guidedTour ) );

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 3, 03:38 (3 w, 4 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
1a/4a/f2e573003b93fef9536c11db4d88
Default Alt Text
checkuserinvestigateform.js (890 B)

Event Timeline