Utente:Daimona Eaytoy/Massblock.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
m Bellifico prima del prossimo passo
fix vari
Riga 6:
* Overwrite values in getLocalMessage to localize.
*
* @todo Handle async loop nicely, fix protect "protections", protection doesn't work, use azioni-dopo-blocco.js, edit and protect numbers aren't updated.
*/
( function( mw, $ ) {
Riga 99:
};
 
var successHandler = function( response, user ) {
let user = response.block.user;
 
blocked++;
if ( wpMassBlockMessage !== "" ) {
Riga 165 ⟶ 167:
user: user
} )
.done( function( datasuccessHandler ) {
successHandler( data, user );
} )
.fail( function( e ) {
errorHandler( e, user );
} ) );
 
 
}
 
Riga 229 ⟶ 227:
action: 'protect',
title: title,
protections: 'edit=sysop|move=sysop|create=sysop', ////////////////////////////////////////////////////////////////fixme
reason: $( "#wpMassBlockProtectReason input" ).val().trim(),
watchlist: 'nochange',