diff options
| author | Adam Soltys <[email protected]> | 2012-11-19 21:24:48 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-11-19 21:24:48 -0800 |
| commit | 105090013ed42b0e262ea747424e25a5005bdb4b (patch) | |
| tree | cb1d2d1f8d139ca0f0d2bfb66dd08d95dc53d5f3 /public | |
| parent | 9d275b1487f4d67d0b58db2f2f07221b50275e34 (diff) | |
| download | coinos-server-105090013ed42b0e262ea747424e25a5005bdb4b.tar.gz coinos-server-105090013ed42b0e262ea747424e25a5005bdb4b.zip | |
Create an edit page
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/index.coffee | 9 |
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) + ) ) |
