 
 
 module = angular.module("taigaTaskboard")
-module.directive("tgLbCreateEditTask", ["$tgRepo", "$tgModel", "$tgResources", "$rootScope",
-                                        CreateEditTaskDirective])
-module.directive("tgLbCreateBulkTasks", ["$tgRepo", "$tgResources", "$rootScope",
-                                               CreateBulkTasksDirective])
+
+module.directive("tgLbCreateEditTask", [
+    "$tgRepo",
+    "$tgModel",
+    "$tgResources",
+    "$rootScope",
+    CreateEditTaskDirective
+])
+
+module.directive("tgLbCreateBulkTasks", [
+    "$tgRepo",
+    "$tgResources",
+    "$rootScope",
+    CreateBulkTasksDirective
+])

            projectId = $scope.projectId
            usId = $scope.form.usId

            $rs.tasks.bulkCreate(projectId, usId, data).then (result) ->
                $rootscope.$broadcast("taskform:bulk:success", result)
                $el.addClass("hidden")

                promise = $repo.save($scope.task)
                broadcastEvent = "taskform:edit:success"

            # FIXME: error handling?
            promise.then (data) ->
                $el.addClass("hidden")
                $rootScope.$broadcast(broadcastEvent, data)
