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

Contenuto cancellato Contenuto aggiunto
Mi stai prendendo per il naso?
m refix
Riga 292:
// OOUI elements
userTextField, talkProtectCb, userSummaryField, userProtectCb, protectReasonField;
 
// Ideally this would use $wgBlockAllowsUTEdit, but it's not available.
blockAllowsTalkEdit = mw.config.get( 'wgWikiName' ) !== 'it';
 
document.getElementsByTagName( "h1" )[ 0 ].textContent = msg[ 'page-title' ];
Riga 424 ⟶ 427:
)
];
 
if ( blockAllowsTalkEdit ) {
blockOptsArray.push( new OO.ui.FieldLayout(
Riga 434 ⟶ 437:
) );
}
 
blockOptsArray.push ( new OO.ui.FieldLayout(
new OO.ui.CheckboxInputWidget( {
id: 'wpMassBlockReblock',
selected: true
} ), {
label: msg[ 'override' ]
}
) );
);
 
var blockOpts = new OO.ui.FieldsetLayout( {
Riga 573 ⟶ 575:
return new mw.Api().loadMessagesIfMissing( [ 'Ipbreason-dropdown' ] );
} )
.then( massblockform );
function () {
// Ideally this would use $wgBlockAllowsUTEdit, but it's not available.
blockAllowsTalkEdit = mw.config.get( 'wgWikiName' ) !== 'it';
console.log(blockAllowsTalkEdit);
massblockform();
}
);
}
} );