From a6d9c76af2b4c7f3accf27fce5ecd83fbdcaf0c1 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 6 Aug 2014 00:25:02 -0700 Subject: Tidy up transactions list --- public/js/report.coffee | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'public/js/report.coffee') diff --git a/public/js/report.coffee b/public/js/report.coffee index 9f8a011b..37c5276d 100644 --- a/public/js/report.coffee +++ b/public/js/report.coffee @@ -63,8 +63,7 @@ display = (transactions) -> $('.report tbody').append(""" - #{this.date} - #{this.address} + #{moment(this.date, 'YYYY-MM-DD h:mm:ss').format('MMM D h:mma')} #{exchange.toFixed(2)} #{received.toFixed(5)} #{amount.toFixed(2)} @@ -73,13 +72,13 @@ display = (transactions) -> ) btc = 0 - $('table.report td:nth-child(4)').each(-> + $('table.report tbody td:nth-child(3)').each(-> btc += parseFloat($(this).html()) ) $('#btc').html(btc.toFixed(5)) cad = 0 - $('table.report td:nth-child(5)').each(-> + $('table.report tbody td:nth-child(4)').each(-> cad += parseFloat($(this).html()) ) $('#cad').html(cad.toFixed(2)) -- cgit v1.2.3