show the infinity symbol if ratio is less than 0
This commit is contained in:
parent
21701cb096
commit
d70edb245b
|
@ -66,7 +66,7 @@ Copyright:
|
|||
}
|
||||
}
|
||||
function availRenderer(value, p, r) {
|
||||
return new Number(value).toFixed(3);
|
||||
return (value < 0) ? '∞' : new Number(value).toFixed(3);
|
||||
}
|
||||
function trackerRenderer(value, p, r) {
|
||||
return String.format('<div style="background: url(/tracker/{0}) no-repeat; padding-left: 20px;">{0}</div>', value);
|
||||
|
|
Loading…
Reference in New Issue