[Edit] Elements pool filtering displays more consistent results

This commit is contained in:
Henry
2016-04-21 10:30:55 -07:00
parent 8b7af43d6c
commit 11cfb6e1b8
3 changed files with 80 additions and 1 deletions

View File

@ -39,7 +39,18 @@ define(
$scope.searchText = text;
}
}
function searchElements(value) {
if ($scope.searchText) {
return value.getModel().name.toLowerCase().search(
$scope.searchText.toLowerCase()) !== -1;
} else {
return true;
}
}
$scope.filterBy = filterBy;
$scope.searchElements = searchElements;
}
return ElementsController;