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

Content deleted Content added
m that should be it
more bugs fixed
Line 207:
var parser; var attributes; var refName; var refLong; var refShort;
var refCodes = []; var refEmpty; var emptyRefsWarningGiven = false;
var refGroup; var refOpening;
// Disable the empty refs warning (see below) if the user has disabled it
Line 269:
// Make a short code for the ref
refOpening = if(refEmpty) ? "<ref " : refPreferred;{
if(!refGroup.length) { refShort = refLong;
} else refShort = refOpening + "name=" + refNameif(!refGroup.PsHTMLQuote(length) + "/>";{
refShort = refPreferred + "name=" +
refName.PsHTMLQuote() + "/>";
} else {
refShort = refOpeningrefPreferred + "name=" + refName.PsHTMLQuote() + " " +
" " + "group=" + refGroup.PsHTMLQuote() + "/>";
}
// Otherwise, is the current longcode not empty?
Line 466 ⟶ 468:
}
// Allow for thedisabling experimentalusage ability to useof the complete search mode
// when segregating refs for editing.
if(typeof SegregateRefsJsCompleteSearch != "undefined" &&
!SegregateRefsJsCompleteSearch) {
complete = true;
} else {
complete = false;
} else {
complete = true;
}
// wikEd compatibility (frame -> textarea)
if(typeof wikEdUseWikEd != "undefined" && wikEdUseWikEd) {
WikEdUpdateTextarea();
}
Line 481 ⟶ 488:
}
randPrefix = segFormat.randPrefix;
// wikEd compatibility (frame -> textarea)
if(typeof wikEdUseWikEd != "undefined" && wikEdUseWikEd) {
WikEdUpdateTextarea();
}
// Update the textbox