diff options
author | piernov <piernov@piernov.org> | 2016-05-10 23:40:17 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-05-10 23:40:17 +0200 |
commit | 1158d2063f00f38de19a4600566b244a942d86ba (patch) | |
tree | 5ada3489d5a7651f978623b8809a9cbcbff180ad /js | |
parent | 21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d (diff) | |
download | candybox-1158d2063f00f38de19a4600566b244a942d86ba.tar.gz candybox-1158d2063f00f38de19a4600566b244a942d86ba.tar.bz2 candybox-1158d2063f00f38de19a4600566b244a942d86ba.tar.xz candybox-1158d2063f00f38de19a4600566b244a942d86ba.zip |
Diffstat (limited to 'js')
-rw-r--r-- | js/craftmine.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/js/craftmine.js b/js/craftmine.js index fa70809..e88d84c 100644 --- a/js/craftmine.js +++ b/js/craftmine.js @@ -86,6 +86,12 @@ function updateMine() { updateData("mine"); } +function resetGame() { + sendRequest("craftmine.php", "op=resetGame", function() { + initCraftMine() + }); +} + function init() { initCraftMine(); changeTab(); // Switch to tab specified in URL |