Content deleted Content added
PleaseStand (talk | contribs) bugfix |
PleaseStand (talk | contribs) use library functions, unquoting of group name |
||
Line 29:
*/
/*global window,
SegregateRefsJsEmptyRefsWarningGiven, wikEdUseWikEd, WikEdUpdateTextarea,
WikEdUpdateFrame*/
// Translate the right-hand side of these if necessary.
Line 58 ⟶ 59:
"migration. If there is consensus to make the conversion, click OK to " +
"do so.",
groupPrompt: "Please enter the
"wikitext, including any quotes). Leave this blank if unsure.",
refsHeader: "Inline footnotes",
convertHeader: "Generated refs list",
Line 385 ⟶ 386:
function submitHandler() {
// Do the actual integration work, updating the textbox
mainTextbox.value = integrateRefs(mainTextbox.value, refsTextbox.value,
Line 395 ⟶ 393:
refsDiv.removeChild(refsH2);
refsDiv.removeChild(refsTextbox);
}
Line 445 ⟶ 437:
// Set up the submit handler (to integrate refs when done editing)
▲ editForm.onsubmit = submitHandler;
// Don't submit form
Line 464 ⟶ 454:
return false;
}
group = group.PsHTMLUnquote();
// The first button should disappear
Line 520 ⟶ 511:
function loadHandler() { // This function is called on page load
try {
// Handle message translations
messages = (typeof SegregateRefsJsL10n == "object" &&
Line 560 ⟶ 548:
window.document.getElementById("editpage-copywarn"));
} catch(e) {
}
}
// Register load handler
▲window.onload = loadHandler;
} SegregateRefsJs();
|