From 1ef036da01f707f12f19f2b0ffc721d807bbebba Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 7 Dec 2012 17:21:24 -0800 Subject: [PATCH] Show logo and title --- public/js/calculator.coffee | 7 ++++--- 1 file 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