Mercurial > templog
changeset 524:0833f0aaf159
fixed point for old values
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 29 Jan 2015 22:55:24 +0800 |
parents | 21ce2b15128f |
children | 8559078a82ff |
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;