Content deleted Content added
Fixes |
Added new "In progress" reply option & added option to only change target pages |
||
Line 8:
"Close": ["", "Close", "Closed edit request"],
"Change": ["", "Close", "Changed level of protected edit request"],
"ChangeTarget": ["", "Close", "Changed target of protected edit request"],
"Remove": ["", "Remove", "Removed edit request"],
"Comment (No template)": ["", "speechBubbleAdd", "Comment"],
Line 13 ⟶ 14:
"Partly done:": ["pd", "check", "Partly done"],
"Already Done": ["a", "clock", "Already Done"],
"In progress: An editor is implementing the requested edit.": ["prog", "clock", "In progress"],
"Note:": ["note", "ellipsis", "Note"],
"Question:": ["q", "helpNotice", "Question"],
Line 153 ⟶ 155:
var boxType = currentBox.parentElement.dataset.origlevel;
var replyList = Object.entries(replyERT);
var mainResponse = [[replyList[
$(currentBox).append('<tr><td colspan="2"><div style="display: flex; justify-content: center;"></div></td></tr><tr style="display:none;"><td colspan=2 style="padding-bottom:10px; text-align:center"><div style="display: flex; justify-content: center;"></div></td></tr>');
var firstRow = currentBox.children[1].children[0].children[0];
Line 199 ⟶ 201:
menu: {items: []}
});
for (var count =
var newOption = new OO.ui.MenuOptionWidget({
label: replyList[count][0],
Line 226 ⟶ 228:
execute(currentBox, replyERT[dropMenu.getLabel()], inputText.value, toggleAns.selected, typeChange.value, targetPages.getValue());
} else if (typeChange.value != typeChange.defaultValue) {
execute(currentBox, replyERT.Change, "",
}
var newTargets = false;
var targets = targetPages.items;
if (targets.length == pageLinks.length) {
for(var item = 0; item < targets.length; item++) {
if (targets[item].data != pageLinks[item]) { newTargets = true; }
}
} else {
newTargets = true;
}
if (newTargets) {
execute(currentBox, replyERT.ChangeTarget, "", false, typeChange.value, targetPages.getValue());
}
} else {
|