From 991e4b77f159bcd64471435dea8a023a96511a7a Mon Sep 17 00:00:00 2001 From: Sebastien Deleuze Date: Wed, 16 Mar 2016 00:56:50 +0100 Subject: [PATCH] Be able to select current user --- src/main/resources/static/index.html | 3 +++ src/main/resources/static/map.js | 39 ++++++++++++++++------------ 2 files changed, 25 insertions(+), 17 deletions(-) diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 590be00..ce225ba 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -10,6 +10,9 @@
+
+ Current user: +
diff --git a/src/main/resources/static/map.js b/src/main/resources/static/map.js index 2f2b686..66639d1 100644 --- a/src/main/resources/static/map.js +++ b/src/main/resources/static/map.js @@ -1,4 +1,10 @@ -var userName = "swhite"; // Currently hardcoded +$.getJSON("/user", function(data) { + $.each( data, function() { + $('#select-user').append($('