mirror of
https://github.com/atlanticbiomedical/biomedjs.git
synced 2025-07-02 00:47:26 -04:00
More features
This commit is contained in:
@ -40,6 +40,8 @@ function testRunAddController($scope, Devices, CheckLists, TestRuns, $location,
|
||||
field.result = (field.value == 'true');
|
||||
} else if (field.type == 'range') {
|
||||
field.result = field.value >= field.min && field.value <= field.max;
|
||||
} else if (field.type == 'text') {
|
||||
field.result = true;
|
||||
}
|
||||
|
||||
$scope.model.result &= field.result;
|
||||
@ -55,4 +57,4 @@ function testRunAddController($scope, Devices, CheckLists, TestRuns, $location,
|
||||
|
||||
function testRunViewController($scope, Devices, CheckLists, TestRuns, $location, $filter, $routeParams) {
|
||||
$scope.model = TestRuns.get($routeParams);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user