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("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();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user