User:DreamRimmer/adminnewslettertools.js: Difference between revisions

Content deleted Content added
+
update (DR)
Line 1:
/**
* AdminNewsletterTools
* ANewsTools
* Administrators' newsletter related updates for a specific month
* @author DreamRimmer ([[en:User:DreanRimmer]])
Line 7:
*/
$(document).ready(function() {
function initializeANewsToolsinitializeAdminNewsTools() {
$('#mw-content-text > p').remove();
$('#firstHeading').text('ANewsToolsAdminNewsTools');
 
var monthSelect = new OO.ui.DropdownWidget({
Line 678:
mw.util.addPortletLink(
'p-tb',
mw.util.getUrl('Special:BlankPage/ANewsToolsAdminNewsTools'),
'ANews Tools',
't-anewstoolsadminnewstools',
'View various Administrators\' newsletter related updates for a specific month'
);
});
 
if (mw.config.get('wgCanonicalSpecialPageName') === 'Blankpage' && mw.config.get('wgTitle').split('/', 2)[1] === 'ANewsToolsAdminNewsTools') {
$.when(
mw.loader.using([
Line 692:
$.ready
).then(function() {
initializeANewsToolsinitializeAdminNewsTools();
});
}