Fix showing calendarname in week view

This commit is contained in:
Raimund Schlüßler 2016-03-14 18:08:50 +01:00
parent 19d3ac7c49
commit 0e7b461a98
3 changed files with 1 additions and 7 deletions

View file

@ -302,9 +302,6 @@
return task.due; return task.due;
} }
}; };
this._$scope.getTaskList = function(listID) {
return _$listsmodel.getName(listID);
};
this._$scope.dropAsSubtask = function($event, item, index) { this._$scope.dropAsSubtask = function($event, item, index) {
var parentID = $('li.dndPlaceholder').closest('.task-item').attr('taskID'); var parentID = $('li.dndPlaceholder').closest('.task-item').attr('taskID');

View file

@ -1079,9 +1079,6 @@ angular.module('Tasks').controller('SettingsController', [
return task.due; return task.due;
} }
}; };
this._$scope.getTaskList = function(listID) {
return _$listsmodel.getName(listID);
};
this._$scope.dropAsSubtask = function($event, item, index) { this._$scope.dropAsSubtask = function($event, item, index) {
var parentID = $('li.dndPlaceholder').closest('.task-item').attr('taskID'); var parentID = $('li.dndPlaceholder').closest('.task-item').attr('taskID');

View file

@ -20,7 +20,7 @@
<span class="icon large task-attachment"></span> <span class="icon large task-attachment"></span>
</a> </a>
<a class="duedate" ng-class="{overdue: TasksModel.overdue(task.due)}">{{ task.due | dateTaskList }}</a> <a class="duedate" ng-class="{overdue: TasksModel.overdue(task.due)}">{{ task.due | dateTaskList }}</a>
<a ng-show="route.calendarID=='week'" class="listname" >{{ getTaskList(task.calendaruri) }}</a> <a ng-show="route.collectionID=='week'" class="listname" >{{ task.calendar.displayname }}</a>
<div class="title-wrapper"> <div class="title-wrapper">
<span class="title" ng-bind-html="task.summary | linky:'_blank':{rel: 'nofollow'}"></span> <span class="title" ng-bind-html="task.summary | linky:'_blank':{rel: 'nofollow'}"></span>
<span class="categories-list"> <span class="categories-list">