fix #301
parent
188985241f
commit
8f51b336d6
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue