mirror of
https://github.com/sismics/docs.git
synced 2025-12-13 09:46:17 +00:00
Closes #212: ui issue with parent tags
This commit is contained in:
@@ -27,11 +27,10 @@ angular.module('docs').controller('Tag', function($scope, Restangular) {
|
||||
|
||||
/**
|
||||
* Find children tags.
|
||||
* @param parent
|
||||
*/
|
||||
$scope.getChildrenTags = function(parent) {
|
||||
return _.filter($scope.tags, function(tag) {
|
||||
return tag.parent === parent;
|
||||
return tag.parent === parent || !tag.parent && !parent;
|
||||
});
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user