aboutsummaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2015-11-11 13:25:35 -0800
committerAdam Soltys <[email protected]>2015-11-11 13:25:35 -0800
commitc1cd55151fdea2bd80e27a6a9dfc905a243dd379 (patch)
treece8f86cf2f247582b133c26d0f728a102d235dd3 /public/js
parent59528d7c0a301c805b03bf77492e489c0e723e79 (diff)
downloadcoinos-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.coffee4
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()