User:DreamRimmer/adminnewslettertools.js: Difference between revisions

Content deleted Content added
expand ArbComCases
move arbcom section
Line 9:
function initializeAdminNewsTools() {
$('#mw-content-text > p').remove();
$('#firstHeading').text('AdminNewsToolsAdministrators\' newsletter tools');
 
var monthSelect = new OO.ui.DropdownWidget({
Line 898:
resultsContainer.append(arbcomHtml);
resultIndex++;
});
fetchArbComCases().then(arbcomCasesHtml => {
const arbcomTasksHtml = createCollapsibleSection('Arbitration Committee open and recently closed cases', arbcomCasesHtml);
resultsContainer.append(arbcomTasksHtml);
});
}
if (sections.includes('rfc')) {
Line 904 ⟶ 909:
resultIndex++;
}
if ((section === 'all' || section === 'arbcom') && isCurrentOrLastMonth) {
fetchArbComCases().then(arbcomCasesHtml => {
const arbcomTasksHtml = createCollapsibleSection('Arbitration Committee open and recently closed cases', arbcomCasesHtml);
resultsContainer.append(arbcomTasksHtml);
});
}
 
if (section === 'all' || section === 'misc') {
const miscPromises = [];