Confirm dialog on deleting characters

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