aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-01-08 07:38:20 -0800
committerAdam Soltys <[email protected]>2014-01-08 07:38:20 -0800
commit9eedeab5b524c342e32b83cc344907778894bfb0 (patch)
treec0fb185c33076cb2cb1a83fe916af8e8b3180875
parent24f4915a829c2a50be3f682b27c512fc482c0f03 (diff)
downloadcoinos-server-9eedeab5b524c342e32b83cc344907778894bfb0.tar.gz
coinos-server-9eedeab5b524c342e32b83cc344907778894bfb0.zip
Fix bug with totals grabbing numbers from popup calendar
-rw-r--r--public/js/report.coffee4
-rw-r--r--views/transactions/index.html2
2 files changed, 3 insertions, 3 deletions
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))
diff --git a/views/transactions/index.html b/views/transactions/index.html
index 889992a4..7efd6477 100644
--- a/views/transactions/index.html
+++ b/views/transactions/index.html
@@ -15,7 +15,7 @@
From: <input id="from" name="from" type="text" class="date" />
To: <input id="to" name="to" type="text" class="date" />
- <table class="table">
+ <table class="table report">
<thead>
<tr>
<th>Date</th>