Make compare os show yellow (ff) progress bars

This commit is contained in:
Hannes Verschore 2015-08-04 02:49:08 -07:00
Родитель ce74d1bfe5
Коммит 7a088f1f37
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -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,
}); });