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

Content deleted Content added
various changes, including fix for loss of changes when back button used
avoid doing the impossible: stopping the unload of the page
Line 449:
}
}
// If any refs are unused, warn and allow the user to cancel;
// we do not do this on unload because it is not really possible.
if(evt.type == "submit" && unusedRefNamesQuoted.length) {
if(!window.confirm(messages.integrateWarning +
unusedRefNamesQuoted.join(", "))) {