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/frontend/app/components/wp-activity/activity-link-directive.js

20 lines
482 B

function activityLink() {
return {
restrict: 'E',
templateUrl: '/templates/work_packages/activities/_link.html',
scope: {
workPackage: '=',
activityNo: '=',
onBlur: '&',
onFocus: '&'
},
link: function(scope) {
scope.workPackageId = scope.workPackage.id;
scope.activityHtmlId = 'activity-' + scope.activityNo;
}
};
}
angular
.module('openproject.workPackages.activities')
.directive('activityLink', activityLink);