Confirm dialog on deleting characters

This commit is contained in:
Eric Fredricksen
2010-07-05 15:31:39 -07:00
parent 90bf567e11
commit 2a6db39215
+3
View File
@@ -19,9 +19,12 @@ $(document).ready(function () {
br.find("a").attr("href", "main.html#" + name) br.find("a").attr("href", "main.html#" + name)
br.find("button").click(function () { br.find("button").click(function () {
if (confirm("Terminate " + Pick(["faithful","noble","loyal","brave"])+
" " + name + "?")) {
delete games[name]; delete games[name];
storeRoster(games); storeRoster(games);
load(); load();
}
}); });
/* /*