comparison 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
comparison
equal deleted inserted replaced
224:01bbb8b93f77 225:f2838211f6ec
121 param.oldvalue = param.value 121 param.oldvalue = param.value
122 if (typeof(param.oldvalue) == "boolean") 122 if (typeof(param.oldvalue) == "boolean")
123 { 123 {
124 param.oldvaluetext = param.oldvalue ? "Yes" : "No"; 124 param.oldvaluetext = param.oldvalue ? "Yes" : "No";
125 } 125 }
126 else if (param.kind == "number")
127 {
128 param.oldvaluetext = Number(param.oldvalue).toFixed(param.digits)
129 }
126 else 130 else
127 { 131 {
128 param.oldvaluetext = param.oldvalue; 132 param.oldvaluetext = param.oldvalue;
129 } 133 }
130 }); 134 });