Listview/Percent
* use same logic for display and sorting
This commit is contained in:
parent
392b5bbdda
commit
d6ca3d70cf
1 changed files with 11 additions and 8 deletions
|
|
@ -1,3 +1,4 @@
|
|||
|
||||
// Needed for IE because it's dumb
|
||||
'abbr article aside audio canvas details figcaption figure footer header hgroup mark menu meter nav output progress section summary time video'.replace(/\w+/g,function(n){document.createElement(n)})
|
||||
|
||||
|
|
@ -7725,21 +7726,23 @@ Listview.extraCols = {
|
|||
}
|
||||
|
||||
if (a.percent >= 1.95) {
|
||||
var acmp = a.percent.toFixed(0);
|
||||
}
|
||||
else if (a.percent >= 0.195) {
|
||||
acmp = parseFloat(a.percent.toFixed(1));
|
||||
var acmp = a.percent.toFixed(1);
|
||||
// var acmp = a.percent.toFixed(0);
|
||||
}
|
||||
// else if (a.percent >= 0.195) {
|
||||
// acmp = parseFloat(a.percent.toFixed(1));
|
||||
// }
|
||||
else {
|
||||
acmp = parseFloat(a.percent.toFixed(2));
|
||||
}
|
||||
|
||||
if (b.percent >= 1.95) {
|
||||
var bcmp = b.percent.toFixed(0);
|
||||
}
|
||||
else if (b.percent >= 0.195) {
|
||||
bcmp = parseFloat(b.percent.toFixed(1));
|
||||
var bcmp = b.percent.toFixed(1);
|
||||
// var bcmp = b.percent.toFixed(0);
|
||||
}
|
||||
// else if (b.percent >= 0.195) {
|
||||
// bcmp = parseFloat(b.percent.toFixed(1));
|
||||
// }
|
||||
else {
|
||||
bcmp = parseFloat(b.percent.toFixed(2));
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue