From 1158d2063f00f38de19a4600566b244a942d86ba Mon Sep 17 00:00:00 2001 From: piernov Date: Tue, 10 May 2016 23:40:17 +0200 Subject: Add reset current game button --- js/craftmine.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'js') 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 -- cgit v1.2.3-70-g09d2