Remove unused currentAnchor reference

pull/3913/head
Alex Dik 9 years ago
parent 69a0b95eb1
commit 0664e11d21
  1. 6
      frontend/app/components/wp-panels/activity-panel/activity-panel-default.directive.html
  2. 5
      frontend/app/components/wp-panels/activity-panel/activity-panel-overview.directive.html
  3. 9
      frontend/app/components/wp-panels/activity-panel/wp-activity.service.js
  4. 1
      frontend/app/templates/work_packages/activities/_revision.html
  5. 1
      frontend/app/templates/work_packages/activities/_user.html

@ -7,11 +7,7 @@
<li ng-repeat="activity in vm.activities"
class="work-package-details-activities-activity"
ng-init="inf = vm.info(activity, $index);
activityNo = inf.number;
isInitial = inf.isInitial;
currentDate = inf.date;
currentAnchor = inf.anchor">
ng-init="inf = vm.info(activity, $index)">
<h3 class="activity-date" ng-if="inf.isNextDate" ng-bind="inf.date"></h3>

@ -5,10 +5,7 @@
<li ng-repeat="activity in vm.activities | latestItems : vm.order === 'desc' : 3"
class="work-package-details-activities-activity"
ng-init="inf = vm.info(activity, $index);
currentAnchor = inf.anchor;
activityNo = inf.number;
isInitial = in.isInitial;">
ng-init="inf = vm.info(activity, $index)">
<activity-entry work-package="vm.workPackage"
activity="activity"

@ -31,11 +31,10 @@ angular
.factory('wpActivity', wpActivity);
function wpActivity($filter, $q, ConfigurationService){
var wpActivity,
order = ConfigurationService.commentsSortedInDescendingOrder() ? 'desc' : 'asc',
var order = ConfigurationService.commentsSortedInDescendingOrder() ? 'desc' : 'asc',
activities = [];
return wpActivity = {
return {
get activities() {
return activities;
},
@ -89,10 +88,6 @@ function wpActivity($filter, $q, ConfigurationService){
return this.date !== this.dateOfPrevious;
},
get anchor() {
return 'note-' + this.number;
},
get isInitial() {
var activityNo = this.number;

@ -12,7 +12,6 @@
</div>
<span class="user" ng-if="userActive">
<a ng-href="{{ userPath(userId) }}"
name="{{ currentAnchor }}"
aria-label="{{ userLabel }}"
ng-bind="userName"></a>
</span>

@ -8,7 +8,6 @@
</div>
<span class="user" ng-if="userActive">
<a ng-href="{{ userPath(userId) }}"
name="{{ currentAnchor }}"
aria-label="{{ userLabel }}"
ng-bind="userName">
</a>

Loading…
Cancel
Save