Juanfran 2014-08-08 10:24:46 +02:00
parent 188985241f
commit 8f51b336d6
2 changed files with 4 additions and 2 deletions

View File

@ -363,7 +363,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
addNewUs: (type) ->
switch type
when "standard" then @rootscope.$broadcast("usform:new", @scope.projectId,
@scope.project.default_us_status)
@scope.project.default_us_status, @scope.usStatusList)
when "bulk" then @rootscope.$broadcast("usform:bulk", @scope.projectId,
@scope.project.default_us_status)

View File

@ -107,7 +107,9 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope, lightboxService)
link = ($scope, $el, attrs) ->
isNew = true
$scope.$on "usform:new", (ctx, projectId, status) ->
$scope.$on "usform:new", (ctx, projectId, status, statusList) ->
$scope.usStatusList = statusList
$scope.us = {
project: projectId
status: status