diff options
| author | Adam Soltys <[email protected]> | 2015-11-11 13:25:35 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2015-11-11 13:25:35 -0800 |
| commit | c1cd55151fdea2bd80e27a6a9dfc905a243dd379 (patch) | |
| tree | ce8f86cf2f247582b133c26d0f728a102d235dd3 /public/js | |
| parent | 59528d7c0a301c805b03bf77492e489c0e723e79 (diff) | |
| download | coinos-server-c1cd55151fdea2bd80e27a6a9dfc905a243dd379.tar.gz coinos-server-c1cd55151fdea2bd80e27a6a9dfc905a243dd379.zip | |
Fetch remote image files and store locally
Diffstat (limited to 'public/js')
| -rw-r--r-- | public/js/calculator.coffee | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index cc2dcece..cc45cae5 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -59,7 +59,9 @@ setup = -> $('#title').html("<a href='/#{g.user.username}/edit'>#{g.user.title}</a>").show() if g.user.logo - $('#logo').attr('src', g.user.logo).show() + ext = g.user.logo.substr(g.user.logo.length - 3) + src = "/assets/img/logos/#{g.user.username}.#{ext}" + $('#logo').attr('src', src).show() getAddress() |
