Content deleted Content added
PleaseStand (talk | contribs) m debugging |
PleaseStand (talk | contribs) m debugging |
||
Line 210:
refStored = false;
refEmpty = false;
window.alert("stored:"+refStored + " empty:"+refEmpty);
refName = randPrefix + (++unnamedRefs).toString(10);
// Change the corresponding ref code
Line 239 ⟶ 240:
// Is the ref's name unique?
if(!refStored) {
window.alert("case 1");
// Unique: add it to the list of refs
refNames[refName] = {
Line 255 ⟶ 257:
// (only when in complete search mode)
} else if (completeSearch && !refNames[refName].empty) {
window.alert("case 2");
// Not empty: fill in the long code and make a short code
refCodes[refNames[refName].code] = refLong;
Line 265 ⟶ 268:
}
} else {
window.alert("case 3");
// Leave the ref as-is in the original wikitext
refShort = refLong;
|