r49968 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r49967‎ | r49968 | r49969 >
Date:18:34, 27 April 2009
Author:yaron
Status:deferred
Tags:
Comment:
Fixed so that inverting selections doesn't affect move-pages option checkboxes
Modified paths:
  • /trunk/extensions/ReplaceText/ReplaceText.js (modified) (history)

Diff [purge]

Index: trunk/extensions/ReplaceText/ReplaceText.js
@@ -2,7 +2,8 @@
33 form = document.getElementById('choose_pages');
44 num_elements = form.elements.length;
55 for (i = 0; i < num_elements; i++) {
6 - if (form.elements[i].type == "checkbox") {
 6+ cur_element = form.elements[i];
 7+ if (cur_element.type == "checkbox" && cur_element.id != 'create-redirect' && cur_element.id != 'watch-pages') {
78 if (form.elements[i].checked == true)
89 form.elements[i].checked = false;
910 else

Status & tagging log