aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-12-07 17:21:24 -0800
committerAdam Soltys <[email protected]>2012-12-07 17:21:29 -0800
commit1ef036da01f707f12f19f2b0ffc721d807bbebba (patch)
tree93b462ada5a94b578e3eb809eabdebc1ca80da62
parent8c9bca8e858ba4419909f6c5484c24c34b51030c (diff)
downloadcoinos-server-1ef036da01f707f12f19f2b0ffc721d807bbebba.tar.gz
coinos-server-1ef036da01f707f12f19f2b0ffc721d807bbebba.zip
Show logo and title
-rw-r--r--public/js/calculator.coffee7
1 files changed, 4 insertions, 3 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee
index 505a1a09..8c129cd0 100644
--- a/public/js/calculator.coffee
+++ b/public/js/calculator.coffee
@@ -52,12 +52,13 @@ setup = ->
g.commission or= 0
g.symbol or= 'virtexCAD'
+ if g.title
+ $('#title').html(g.title).show()
+
if g.logo
$('#logo').attr('src', g.logo).show()
- else if not g.title
+ else unless g.title
$('#logo').attr('src', 'img/bitcoin.png').show()
- else
- $('#title').html(g.title).show()
address = g.address
if g.user? and g.user