parent
233ce258f9
commit
760edcd414
@ -0,0 +1,5 @@ |
|||||||
|
<a id ="{{ activityHtmlId }}" |
||||||
|
ng-bind="'#' + activityNo" |
||||||
|
ng-focus="onFocus()" |
||||||
|
ng-blur="onBlur()" |
||||||
|
ui-sref="work-packages.show.activity({ workPackageId: workPackageId, '#': activityHtmlId})"></a> |
@ -0,0 +1,16 @@ |
|||||||
|
module.exports = function() { |
||||||
|
return { |
||||||
|
restrict: 'E', |
||||||
|
templateUrl: '/templates/work_packages/activities/_link.html', |
||||||
|
scope: { |
||||||
|
workPackage: '=', |
||||||
|
activityNo: '=', |
||||||
|
onBlur: '&', |
||||||
|
onFocus: '&' |
||||||
|
}, |
||||||
|
link: function(scope) { |
||||||
|
scope.workPackageId = scope.workPackage.props.id; |
||||||
|
scope.activityHtmlId = 'activity-' + scope.activityNo; |
||||||
|
} |
||||||
|
}; |
||||||
|
}; |
Loading…
Reference in new issue