diff options
Diffstat (limited to 'python')
| -rw-r--r-- | python/Dawn/static/utils.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/python/Dawn/static/utils.js b/python/Dawn/static/utils.js index f74d681f..befcc442 100644 --- a/python/Dawn/static/utils.js +++ b/python/Dawn/static/utils.js @@ -1,9 +1,9 @@ function $(s) { - return( document.getElementById(s) ) + return( document.getElementById(s) ); } function encode_dict(d){ - var r = [] + var r = []; for(var k in d){ r.push(encodeURIComponent(k) + '=' + encodeURIComponent(d[k])); } @@ -16,11 +16,11 @@ function query(url, params, callback){ xhr.onreadystatechange = function() { if( xhr.readyState === 4 ) { if( xhr.status === 200 ) { - callback(xhr.responseText) + callback(xhr.responseText); } else if ( xhr.status === 400 ) { - console.log(xhr.responseText) + console.log(xhr.responseText); } } - } + }; xhr.send(); } |
