OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openproject/app/assets/javascripts/angular/directives/tree_node.js

14 lines
360 B

openprojectApp.directive('treeNode', [function() {
return {
restrict: 'A',
scope: true,
link: function(scope, element, attributes) {
scope.node.dom_element = element;
scope.$watch('node.expanded', function(expanded, formerlyExpanded) {
if(expanded !== formerlyExpanded) scope.timeline.rebuildAll();
});
}
};
}]);