Skip to content

Commit

Permalink
Show logo and title
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Soltys committed Dec 8, 2012
1 parent 8c9bca8 commit 1ef036d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions public/js/calculator.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ef036d

Please sign in to comment.