Files
habitica/website/client-old/js/directives/task.directive.js
Keith Holliday 30954fe7c5 Added support for grouping tasks by challenge (#8469)
* Added support for grouping tasks by chllenge

* Fixed tests and updated default challenge model name

* Fixed broken member test

* Updated setting string

* Changed to shortName

* Began abstracting task grouping

* Added initial task directive code

* Added new directives to help with grouping of tasks

* Removed random console.log
2017-02-27 11:34:03 -07:00

25 lines
547 B
JavaScript

'use strict';
(function(){
angular
.module('habitrpg')
.directive('task', task);
task.$inject = [
'Shared',
];
function task(Shared) {
return {
restrict: 'E',
templateUrl: 'templates/task.html',
scope: true,
link: function($scope, element, attrs) {
$scope.getClasses = function (task, user, list, main) {
return Shared.taskClasses(task, user.filters, user.preferences.dayStart, user.lastCron, list.showCompleted, main);
}
}
}
}
}());