Content deleted Content added
PleaseStand (talk | contribs) fix the __proto__ bug |
PleaseStand (talk | contribs) add refsDiv directly under #editform, not within .wikiEditor-ui (fixes overlap issue) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 456:
refsTextbox.id = "PsRefsTextbox";
refsTextbox.value = segFormat.refCodes.join("\n\n");
refsTextbox.rows =
refsTextbox.cols = mainTextbox.cols;▼
refsTextbox.style.border = "none";
Line 538 ⟶ 537:
refsTextbox.value = messages.refsCommentComplete +
segFormat.refCodes.join("\n");
refsTextbox.rows =
refsTextbox.style.border = "none";
Line 565 ⟶ 563:
return false;
}
}▼
Line 586 ⟶ 569:
try {
}▼
// Handle message translations
messages = (typeof SegregateRefsJsL10n == "object" &&
Line 630 ⟶ 609:
refsDiv.appendChild(refsButton);
refsDiv.appendChild(convertButton);
// Find position within the edit form to insert it at
var refsDivPos = mainTextbox, refsDivPosParent = refsDivPos.parentNode;
while (refsDivPosParent !== editForm) {
refsDivPos = refsDivPosParent;
refsDivPosParent = refsDivPos.parentNode;
if (!refsDivPosParent) {
refsDivPosParent = refsDivPos.parentNode;
break;
▲ }
▲ }
refsDivPos = refsDivPos.nextSibling;
if (refsDivPos && refsDivPos.classList.contains("wikiEditor-ui-clear")) {
refsDivPos = refsDivPos.nextSibling;
▲ }
refsDivPosParent.insertBefore(refsDiv, refsDivPos);
} catch(e) {
}
|