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