diff --git a/app/coffee/modules/admin/project-values.coffee b/app/coffee/modules/admin/project-values.coffee index 327d0601..4011c3f8 100644 --- a/app/coffee/modules/admin/project-values.coffee +++ b/app/coffee/modules/admin/project-values.coffee @@ -103,10 +103,7 @@ module.controller("ProjectValuesController", ProjectValuesController) ############################################################################# ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) -> - - ######################### ## Drag & Drop Link - ######################### linkDragAndDrop = ($scope, $el, $attrs) -> oldParentScope = null @@ -131,9 +128,7 @@ ProjectValuesDirective = ($log, $repo, $confirm, $location, animationFrame) -> $scope.$on "$destroy", -> $el.off() - ######################### ## Value Link - ######################### linkValue = ($scope, $el, $attrs) -> $ctrl = $el.controller() @@ -279,10 +274,7 @@ module.directive("tgProjectValues", ["$log", "$tgRepo", "$tgConfirm", "$tgLocati ############################################################################# ColorSelectionDirective = () -> - - ######################### ## Color selection Link - ######################### link = ($scope, $el, $attrs, $model) -> $ctrl = $el.controller() diff --git a/app/coffee/modules/auth.coffee b/app/coffee/modules/auth.coffee index 03e32156..bc59efd5 100644 --- a/app/coffee/modules/auth.coffee +++ b/app/coffee/modules/auth.coffee @@ -75,9 +75,7 @@ class AuthService extends taiga.Service return true return false - ################### ## Http interface - ################### login: (data, type) -> url = @urls.resolve("auth") diff --git a/app/coffee/modules/backlog/main.coffee b/app/coffee/modules/backlog/main.coffee index 55c23731..94e85059 100644 --- a/app/coffee/modules/backlog/main.coffee +++ b/app/coffee/modules/backlog/main.coffee @@ -420,13 +420,11 @@ module.controller("BacklogController", BacklogController) ############################################################################# BacklogDirective = ($repo, $rootscope) -> - ######################### ## Doom line Link - ######################### - #TODO: i18n doomLineTemplate = _.template("""
Project Scope [Doomline]
""") + # TODO: i18n linkDoomLine = ($scope, $el, $attrs, $ctrl) -> reloadDoomLine = -> @@ -464,9 +462,7 @@ BacklogDirective = ($repo, $rootscope) -> $scope.$on("userstories:loaded", reloadDoomLine) $scope.$watch "stats", reloadDoomLine - ############################## ## Move to current sprint link - ############################## linkToolbar = ($scope, $el, $attrs, $ctrl) -> moveToCurrentSprint = (selectedUss) -> @@ -538,15 +534,12 @@ BacklogDirective = ($repo, $rootscope) -> if !sidebar.hasClass("active") $ctrl.resetFilters() - ######################### ## Filters Link - ######################### linkFilters = ($scope, $el, $attrs, $ctrl) -> $scope.filtersSearch = {} $el.on "click", "#show-filters-button", (event) -> event.preventDefault() - showHideFilter($scope, $el, $ctrl) diff --git a/app/coffee/modules/backlog/sprints.coffee b/app/coffee/modules/backlog/sprints.coffee index c4f6f91b..5dba9b92 100644 --- a/app/coffee/modules/backlog/sprints.coffee +++ b/app/coffee/modules/backlog/sprints.coffee @@ -34,11 +34,7 @@ module = angular.module("taigaBacklog") ############################################################################# BacklogSprintDirective = ($repo, $rootscope) -> - - ######################### ## Common parts - ######################### - linkCommon = ($scope, $el, $attrs, $ctrl) -> sprint = $scope.$eval($attrs.tgBacklogSprint) if $scope.$first diff --git a/app/coffee/modules/issues/list.coffee b/app/coffee/modules/issues/list.coffee index 3ebae1ff..0cf22a00 100644 --- a/app/coffee/modules/issues/list.coffee +++ b/app/coffee/modules/issues/list.coffee @@ -333,11 +333,7 @@ paginatorTemplate = """ """ IssuesDirective = ($log, $location) -> - - ######################### ## Issues Pagination - ######################### - template = _.template(paginatorTemplate) linkPagination = ($scope, $el, $attrs, $ctrl) -> @@ -416,10 +412,7 @@ IssuesDirective = ($log, $location) -> $ctrl.selectFilter("page", pagenum) $ctrl.loadIssues() - ######################### ## Issues Filters - ######################### - linkOrdering = ($scope, $el, $attrs, $ctrl) -> # Draw the arrow the first time currentOrder = $ctrl.getUrlFilter("orderBy") or "created_date" @@ -445,10 +438,7 @@ IssuesDirective = ($log, $location) -> icon = if startswith(finalOrder, "-") then "icon-caret-up" else "icon-caret-down" target.html("#{target.html()}") - ######################### ## Issues Link - ######################### - link = ($scope, $el, $attrs) -> $ctrl = $el.controller() linkOrdering($scope, $el, $attrs, $ctrl) diff --git a/app/coffee/modules/kanban/sortable.coffee b/app/coffee/modules/kanban/sortable.coffee index 3c034363..1d99ff45 100644 --- a/app/coffee/modules/kanban/sortable.coffee +++ b/app/coffee/modules/kanban/sortable.coffee @@ -36,11 +36,6 @@ module = angular.module("taigaKanban") ############################################################################# KanbanSortableDirective = ($repo, $rs, $rootscope) -> - - ######################### - ## Drag & Drop Link - ######################### - link = ($scope, $el, $attrs) -> timeout 500, -> mainPadding = 32 # px diff --git a/app/coffee/modules/taskboard/sortable.coffee b/app/coffee/modules/taskboard/sortable.coffee index 753ec80c..6a075142 100644 --- a/app/coffee/modules/taskboard/sortable.coffee +++ b/app/coffee/modules/taskboard/sortable.coffee @@ -35,11 +35,6 @@ module = angular.module("taigaBacklog") ############################################################################# TaskboardSortableDirective = ($repo, $rs, $rootscope) -> - - ######################### - ## Drag & Drop Link - ######################### - link = ($scope, $el, $attrs) -> oldParentScope = null newParentScope = null