Mercurial > templog
diff web/views/set.tpl @ 524:0833f0aaf159
fixed point for old values
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 29 Jan 2015 22:55:24 +0800 |
parents | 23c6cf01d237 |
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;