User:PleaseStand/segregate-refs-dev.js: Difference between revisions

Content deleted Content added
m scanner.slice is not a function
m remove variable complete
Line 54:
 
var editForm, refsDiv, refsH2, mainTextbox, refsTextbox, randPrefix, messages,
refsButton, convertButton, complete, unloadHandlerRegistered = false;
 
function has( obj, key ) {
Line 373:
// Do the actual integration work
result = integrateRefs(mainTextbox.value, refsTextbox.value, randPrefix, completetrue);
 
// Find all unused ref names
Line 428:
// Do the actual segregation work and save the random prefix
var segFormat = segregateRefs(mainTextbox.value, "", completetrue);
if(!segFormat) {
return false;
Line 460:
refsTextbox = document.createElement("textarea");
refsTextbox.id = "PsRefsTextbox";
refsTextbox.value = messages.refsCommentIncomplete + segFormat.refCodes.join("\n\n");
if(!complete) {
refsTextbox.value = messages.refsCommentIncomplete +
segFormat.refCodes.join("\n\n");
} else {
refsTextbox.value = segFormat.refCodes.join("\n\n");
}
refsTextbox.rows = Math.floor(mainTextbox.rows / 2);
refsTextbox.cols = mainTextbox.cols;
Line 582 ⟶ 577:
WikEdUpdateTextarea();
}
return integrateRefs(mainTextbox.value, refsTextbox.value, randPrefix, true).wikiText;
randPrefix, complete).wikiText;
} else {
return mainTextbox.value;