MediaWiki:Gadget-Massblock.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
m Annullata la modifica 109422115 di Daimona Eaytoy (discussione) - Etichetta: Annulla |
Sistemo e snellisco l'interfaccia |
||
Riga 28:
'massblock-page-title': 'Mass-blocking tool',
'massblock-abuse-disclaimer': 'If you abuse this tool, it\'s your fault, not mine.',
'massblock-blockusers': 'Users to block (one on each line, please):',
'massblock-talkmsg': 'Replace talk page with, or text to add if the expiry is not infinite (leave blank to leave no message):',
Line 412 ⟶ 411:
} );
var
label: msg( '
items: [
new OO.ui.
new OO.ui.MultilineTextInputWidget( {▼
} ), {▼
label: msg( 'blockusers' ),▼
align: 'top',▼
}▼
),▼
new OO.ui.HorizontalLayout( {▼
▲ items: [
new OO.ui.FieldLayout(▼
talkTextField, {▼
label: msg( 'talkmsg' ),▼
align: 'top',▼
id: 'wpMassBlockMessage'▼
}▼
),▼
new OO.ui.FieldLayout( userTextField, {▼
id: 'wpMassBlockTag'▼
} )▼
]▼
} )
]
Line 578 ⟶ 556:
} );
!isInfinity( $( '#wpMassBlockExpiry input' ).val().trim() );
} );▼
userTextField.on( 'change', toggleUserTextField );
talkProtectCb =
Line 620 ⟶ 602:
label: msg( 'further-options-label' ),
items: [
items: [
▲ align: 'top',
▲ id: 'wpMassBlockMessage',
classes: [ 'massblock-horiz-element' ]
▲ }
▲ ),
▲ new OO.ui.FieldLayout(
{
▲ align: 'top',
▲ id: 'wpMassBlockTag',
classes: [ 'massblock-horiz-element' ]
new OO.ui.FieldLayout( talkSummaryField, {
label: msg( 'talksummary' )
Line 645 ⟶ 649:
userTextField,
talkProtectCb,
▲ userSummaryField,
userProtectCb
];
Line 654 ⟶ 657:
toggleProtectionFields();
toggleUserTextField();
} );
Line 667 ⟶ 671:
.on( 'click', doMassBlock );
form.addItems( [
Line 690 ⟶ 694:
( /sysop/ ).test( mw.config.get( "wgUserGroups" ) )
) {
var style ='.massblock-horiz-element{ width: 40%; }';
mw.util.addCSS( style );
mw.loader.using( [ 'mediawiki.api', 'mediawiki.jqueryMsg', 'oojs-ui-core', 'oojs-ui-widgets', 'oojs-ui-windows' ], $.ready )
.done( function loadMsg() {
|