diff options
author | piernov <piernov@piernov.org> | 2016-04-27 19:47:34 +0200 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2016-04-27 19:47:34 +0200 |
commit | 2b0a84a41eeb90094d42c3c516bf99837d08a745 (patch) | |
tree | 72163d902ab285810b805ab6a10e56c4ab7eb85c /js | |
parent | 8770f9ddccfafaad935f66ccbf254624b41545f3 (diff) | |
download | candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.tar.gz candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.tar.bz2 candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.tar.xz candybox-2b0a84a41eeb90094d42c3c516bf99837d08a745.zip |
Automatically show received info
Diffstat (limited to 'js')
-rw-r--r-- | js/craftmine.js | 2 |
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; |