changeset 225:f2838211f6ec

fixed point for old values
author Matt Johnston <matt@ucc.asn.au>
date Thu, 29 Jan 2015 22:55:24 +0800
parents 01bbb8b93f77
children da769023bf08
files web/views/set.tpl
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/web/views/set.tpl	Thu Jan 29 22:52:26 2015 +0800
+++ b/web/views/set.tpl	Thu Jan 29 22:55:24 2015 +0800
@@ -123,6 +123,10 @@
         {
             param.oldvaluetext = param.oldvalue ? "Yes" : "No";
         }
+        else if (param.kind == "number")
+        {
+            param.oldvaluetext = Number(param.oldvalue).toFixed(param.digits)
+        }
         else
         {
             param.oldvaluetext = param.oldvalue;