Merge remote-tracking branch 'origin/open663'

This commit is contained in:
Pete Richards
2016-05-09 10:33:39 -07:00
3 changed files with 81 additions and 2 deletions

View File

@ -37,9 +37,20 @@ 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;
}
);
);