aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpiernov <piernov@piernov.org>2016-04-27 19:47:34 +0200
committerpiernov <piernov@piernov.org>2016-04-27 19:47:34 +0200
commit2b0a84a41eeb90094d42c3c516bf99837d08a745 (patch)
tree72163d902ab285810b805ab6a10e56c4ab7eb85c
parent8770f9ddccfafaad935f66ccbf254624b41545f3 (diff)
downloadcandybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.tar.gz
candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.tar.bz2
candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.tar.xz
candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.zip
Automatically show received info
-rw-r--r--js/craftmine.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/js/craftmine.js b/js/craftmine.js
index 92fa45a..28583dd 100644
--- a/js/craftmine.js
+++ b/js/craftmine.js
@@ -12,6 +12,8 @@ function sendRequest(url, params, callback) {
xhr.onreadystatechange = function() {
if(xhr.readyState == XMLHttpRequest.DONE && xhr.status == "200") {
var data = JSON.parse(xhr.responseText);
+ if(data.info)
+ showInfo(data.info);
if(data.error) {
showError(data.error);
return;