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

13 lines
358 B

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