From a7e0ef90760d2701d5133ea391c9eb9e9c35c2ae Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sat, 18 Jan 2014 00:26:11 +0100 Subject: [PATCH] Display cost of contribution with to digit after comma --- inc/myco.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/myco.js b/inc/myco.js index d85140b..43ded52 100644 --- a/inc/myco.js +++ b/inc/myco.js @@ -166,7 +166,7 @@ show_contributions=function(group,contributor_name) { sum=0; for (idx in contributions) { col_actions='
'; - tbody.append(''+contributions[idx].getTitle()+''+contributions[idx].cost+' €'+col_actions+''); + tbody.append(''+contributions[idx].getTitle()+''+contributions[idx].cost.toFixed(2)+' €'+col_actions+''); sum+=contributions[idx].cost; } total.html(sum.toFixed(2)+' €');