From 02edfb1a7e9f254d0fe74661474be0c9efb2594c Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 9 Jul 2014 18:15:00 +0200 Subject: [PATCH] Remove old sortable code from taskboard directive. --- app/coffee/modules/taskboard/main.coffee | 29 ------------------------ 1 file changed, 29 deletions(-) diff --git a/app/coffee/modules/taskboard/main.coffee b/app/coffee/modules/taskboard/main.coffee index 55568f91..9b325b09 100644 --- a/app/coffee/modules/taskboard/main.coffee +++ b/app/coffee/modules/taskboard/main.coffee @@ -140,7 +140,6 @@ class TaskboardController extends mixOf(taiga.Controller, taiga.PageMixin) .then(=> @.loadTaskboard()) ## Template actions - addNewTask: (type, us) -> switch type when "standard" then @rootscope.$broadcast("taskform:new", @scope.sprintId, us?.id) @@ -160,36 +159,8 @@ module.controller("TaskboardController", TaskboardController) ############################################################################# TaskboardDirective = ($rootscope) -> - - ######################### - ## Drag & Drop Link - ######################### - - linkSortable = ($scope, $el, $attrs, $ctrl) -> - onUpdateItem = (event) -> - #TODO - console.log "onUpdate", event - - onAddItem = (event) -> - #TODO - console.log "onAddItem", event - - onRemoveItem = (event) -> - #TODO - console.log "onRemoveItem", event - - dom = $el.find(".taskboard-table-body") - sortable = new Sortable(dom[0], { - group: "taskboard", - selector: ".taskboard-task", - onUpdate: onUpdateItem - onAdd: onAddItem - onRemove: onRemoveItem - }) - link = ($scope, $el, $attrs) -> $ctrl = $el.controller() - linkSortable($scope, $el, $attrs, $ctrl) $el.on "click", ".toggle-analytics-visibility", (event) -> event.preventDefault()