aboutsummaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/js/index.coffee9
1 files changed, 9 insertions, 0 deletions
diff --git a/public/js/index.coffee b/public/js/index.coffee
index a5821e90..d53a4e48 100644
--- a/public/js/index.coffee
+++ b/public/js/index.coffee
@@ -17,4 +17,13 @@ $(->
else
$(this).css('color', 'red')
)
+
+ if $('#login').val() != ""
+ $.getJSON('/' + $('#login').val() + '.json', (data) ->
+ $('#name').val(data.name)
+ $('#image').val(data.image)
+ $('#address').val(data.address)
+ $('#symbol option[value=' + data.symbol + ']').attr('selected', 'selected')
+ $('#commission').val(data.commission)
+ )
)