comparison 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
comparison
equal deleted inserted replaced
523:21ce2b15128f 524:0833f0aaf159
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 });