mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Confirm dialog on deleting characters
This commit is contained in:
@@ -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();
|
||||
}
|
||||
});
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user