Content deleted Content added
continue after post error |
ask before continuing |
||
Line 35:
function doRefresh(action, count, totalCount, wait) {
console.error(error);▼
alert("Error performing " + action + ":" + code + "!");▼
count -= 1;▼
postDone();▼
}▼
function postDone() {
mw.notify((count + 1) + " of " + totalCount + " page(s) were updated", { tag: "bubble"+count } );▼
if (pageList.length > 0) {
setTimeout(function() {
doRefresh(action, count, totalCount, wait);
}, wait);
▲ if (confirm("Done!\n\nReload page?") == true) {
▲ document.___location.reload();
}
}
Line 69 ⟶ 57:
apiParams.nocreate = "1";
apiParams.appendtext = "";
new mw.Api().postWithEditToken(apiParams).fail(
▲ console.error(error);
postDone();
▲ }
} ).done( () => {
▲ mw.notify((count + 1) + " of " + totalCount + " page(s) were updated", { tag: "bubble"+count } );
▲ postDone();
▲ } );
}
}
|