From 9eedeab5b524c342e32b83cc344907778894bfb0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 8 Jan 2014 07:38:20 -0800 Subject: Fix bug with totals grabbing numbers from popup calendar --- public/js/report.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'public') diff --git a/public/js/report.coffee b/public/js/report.coffee index 372abe7b..ed37159c 100644 --- a/public/js/report.coffee +++ b/public/js/report.coffee @@ -62,13 +62,13 @@ display = (transactions) -> ) btc = 0 - $('td:nth-child(4)').each(-> + $('table.report td:nth-child(4)').each(-> btc += parseFloat($(this).html()) ) $('#btc').html(btc.toFixed(5)) cad = 0 - $('td:nth-child(5)').each(-> + $('table.report td:nth-child(5)').each(-> cad += parseFloat($(this).html()) ) $('#cad').html(cad.toFixed(2)) -- cgit v1.2.3