diff web/views/set.tpl @ 225:f2838211f6ec

fixed point for old values
author Matt Johnston <matt@ucc.asn.au>
date Thu, 29 Jan 2015 22:55:24 +0800
parents 4fa8cbf31065
children 61269311ed3d
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;