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

Content deleted Content added
m minor bugfix
+complete search option
Line 31:
/*global window, addOnloadHook, SegregateRefsJsL10n,
SegregateRefsJsEmptyRefsWarningGiven, SegregateRefsJsAllowConversion,
SegregateRefsJsCompleteSearch, wikEdUseWikEd, WikEdUpdateTextarea,
WikEdUpdateFrame*/
 
// Translate the right-hand side of these if necessary.
Line 429 ⟶ 430:
 
function refsButtonHandler() { // Called when script activated by button click
// Local variables
var complete = false;
// Both buttons should disappear
if(convertButton.parentNode){
Line 435 ⟶ 439:
if(refsButton.parentNode) {
refsButton.parentNode.removeChild(refsButton);
}
// Allow for the experimental ability to use the complete search mode
// when segregating refs for editing.
if(typeof SegregateRefsJsCompleteSearch != "undefined" &&
SegregateRefsCompleteSearch) {
complete = true;
}
// Do the actual segregation work and save the random prefix
var segFormat = segregateRefs(mainTextbox.value, falsecomplete, "");
if(!segFormat) {
return false;