aboutsummaryrefslogtreecommitdiffstats
path: root/public/js/report.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-08-17 23:25:02 -0700
committerAdam Soltys <[email protected]>2014-08-17 23:25:02 -0700
commitb4037fd1a0d115dee40b7d20eec31c3875e4fa39 (patch)
tree0a4fd4451989513a2c52c51b8f3c944f03aef5b4 /public/js/report.coffee
parent64edb5636736a9c897958e7b743374addba96bcb (diff)
downloadcoinos-server-b4037fd1a0d115dee40b7d20eec31c3875e4fa39.tar.gz
coinos-server-b4037fd1a0d115dee40b7d20eec31c3875e4fa39.zip
Let users configure BTC units
Diffstat (limited to 'public/js/report.coffee')
-rw-r--r--public/js/report.coffee4
1 files changed, 2 insertions, 2 deletions
diff --git a/public/js/report.coffee b/public/js/report.coffee
index 90b7c0aa..99a0df25 100644
--- a/public/js/report.coffee
+++ b/public/js/report.coffee
@@ -64,7 +64,7 @@ display = (transactions) ->
<tr>
<td>#{moment(this.date, 'YYYY-MM-DD h:mm:ss').format('MMM D h:mma')}</td>
<td>#{exchange.toFixed(2)}</td>
- <td>#{received.toFixed(5)}</td>
+ <td>#{received.toFixed(8)}</td>
<td>#{amount.toFixed(2)}</td>
</tr>
""")
@@ -74,7 +74,7 @@ display = (transactions) ->
$('table.report tbody td:nth-child(3)').each(->
btc += parseFloat($(this).html())
)
- $('#btc').html(btc.toFixed(5))
+ $('#btc').html(btc.toFixed(8))
cad = 0
$('table.report tbody td:nth-child(4)').each(->