Juanfran 2014-08-07 14:32:50 +02:00
parent ccb2c5cacb
commit 3113de76a7
2 changed files with 3 additions and 3 deletions

View File

@ -63,10 +63,10 @@ CreateEditSprint = ($repo, $confirm, $rs, $rootscope, lightboxService) ->
lightboxService.close($el)
$rootscope.$broadcast("sprintform:remove:success")
$scope.$on "sprintform:create", ->
$scope.$on "sprintform:create", (event, projectId) ->
createSprint = true
$scope.sprint = {
project: $scope.projectId
project: projectId
name: null
estimated_start: null
estimated_finish: null

View File

@ -362,7 +362,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
@scope.project.default_us_status)
addNewSprint: () ->
@rootscope.$broadcast("sprintform:create")
@rootscope.$broadcast("sprintform:create", @scope.projectId)
module.controller("BacklogController", BacklogController)