aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-05-10 23:40:17 +0200
committerpiernov <piernov@piernov.org>2016-05-10 23:40:17 +0200
commit1158d2063f00f38de19a4600566b244a942d86ba (patch)
tree5ada3489d5a7651f978623b8809a9cbcbff180ad /js
parent21aedf3aec9de4f87c8598b32a2a0b1c18a0c43d (diff)
downloadcandybox-1158d2063f00f38de19a4600566b244a942d86ba.tar.gz
candybox-1158d2063f00f38de19a4600566b244a942d86ba.tar.bz2
candybox-1158d2063f00f38de19a4600566b244a942d86ba.tar.xz
candybox-1158d2063f00f38de19a4600566b244a942d86ba.zip
Add reset current game buttonHEADmaster
Diffstat (limited to 'js')
-rw-r--r--js/craftmine.js6
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