aboutsummaryrefslogtreecommitdiffstats
path: root/python/Dawn/static/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'python/Dawn/static/utils.js')
-rw-r--r--python/Dawn/static/utils.js10
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();
}