Make compare os show yellow (ff) progress bars
This commit is contained in:
Родитель
ce74d1bfe5
Коммит
7a088f1f37
|
@ -1,7 +1,9 @@
|
||||||
var awfyCtrl = angular.module('awfyControllers', []);
|
var awfyCtrl = angular.module('awfyControllers', []);
|
||||||
|
|
||||||
var isFF = function(name) {
|
var isFF = function(machine, name) {
|
||||||
if(name.indexOf("Ion") != -1) {
|
if (machine == 31) {
|
||||||
|
return true;
|
||||||
|
} else if(name.indexOf("Ion") != -1) {
|
||||||
return true;
|
return true;
|
||||||
} else if(name.indexOf("Beta") != -1) {
|
} else if(name.indexOf("Beta") != -1) {
|
||||||
return true;
|
return true;
|
||||||
|
@ -213,7 +215,7 @@ awfyCtrl.controller('overviewCtrl', ['$scope', '$http', '$routeParams', '$q', '$
|
||||||
name: master["modes"][test["modeid"]]["name"],
|
name: master["modes"][test["modeid"]]["name"],
|
||||||
score: Math.round(test["score"]*100)/100,
|
score: Math.round(test["score"]*100)/100,
|
||||||
scoreLabel: scoreLabel,
|
scoreLabel: scoreLabel,
|
||||||
ff: isFF(master["modes"][test["modeid"]]["name"]) ? "ff" : "",
|
ff: isFF(machines[j]["machine"], master["modes"][test["modeid"]]["name"]) ? "ff" : "",
|
||||||
stamp: stamp,
|
stamp: stamp,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче