mediawiki-extensions-Replac.../resources/ext.ReplaceText.js
Cindy Cicalese 3c36f7452a Update CI files, dir structure, remove inline JS.
Bug:T191546
Bug:T191919
Change-Id: Ia7ed03a98972262d164fd131bcb84994ad279c7f
2018-04-11 17:21:08 +00:00

18 lines
476 B
JavaScript

window.invertSelections = function () {
'use strict';
var form = document.getElementById( 'choose_pages' ),
numElements = form.elements.length,
i,
curElement;
for ( i = 0; i < numElements; i++ ) {
curElement = form.elements[ i ];
if ( curElement.type === 'checkbox' && curElement.id !== 'create-redirect' &&
curElement.id !== 'watch-pages' && curElement.id !== 'doAnnounce' ) {
form.elements[ i ].checked = form.elements[ i ].checked !== true;
}
}
};