diff options
| author | Adam Soltys <[email protected]> | 2012-11-20 18:51:05 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-11-20 18:51:05 -0800 |
| commit | bef1a973f8e940ad6251732db25a4052abe5a5bd (patch) | |
| tree | 80bcce753c2ceff30bb100ba1f0911d506db7fff | |
| parent | 53f973993da0e7c1124d5bf3ed303fa64aea71d4 (diff) | |
| download | coinos-server-bef1a973f8e940ad6251732db25a4052abe5a5bd.tar.gz coinos-server-bef1a973f8e940ad6251732db25a4052abe5a5bd.zip | |
Link to report from address
| -rw-r--r-- | public/js/calculator.coffee | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index becd2210..89b22886 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -28,7 +28,7 @@ $(-> setupQR() setupSocket() - if user? and user + if g.user? and g.user $.ajax( url: user + '.json', cache: false, @@ -112,8 +112,12 @@ setupPage = -> else $('#name').html(g.name).show() + address = g.address + if g.user? and g.user + address = "<a href='/#{g.user}/report'>#{address}</a>" + if check_address(g.address) - $('#address').html("<a href='https://blockchain.info/address/#{g.address}'>#{g.address}</a>") + $('#address').html(address) else fail(ADDRESS_FAIL) |
