fix #301
parent
188985241f
commit
8f51b336d6
|
@ -363,7 +363,7 @@ class BacklogController extends mixOf(taiga.Controller, taiga.PageMixin, taiga.F
|
||||||
addNewUs: (type) ->
|
addNewUs: (type) ->
|
||||||
switch type
|
switch type
|
||||||
when "standard" then @rootscope.$broadcast("usform:new", @scope.projectId,
|
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,
|
when "bulk" then @rootscope.$broadcast("usform:bulk", @scope.projectId,
|
||||||
@scope.project.default_us_status)
|
@scope.project.default_us_status)
|
||||||
|
|
||||||
|
|
|
@ -107,7 +107,9 @@ CreateEditUserstoryDirective = ($repo, $model, $rs, $rootScope, lightboxService)
|
||||||
link = ($scope, $el, attrs) ->
|
link = ($scope, $el, attrs) ->
|
||||||
isNew = true
|
isNew = true
|
||||||
|
|
||||||
$scope.$on "usform:new", (ctx, projectId, status) ->
|
$scope.$on "usform:new", (ctx, projectId, status, statusList) ->
|
||||||
|
$scope.usStatusList = statusList
|
||||||
|
|
||||||
$scope.us = {
|
$scope.us = {
|
||||||
project: projectId
|
project: projectId
|
||||||
status: status
|
status: status
|
||||||
|
|
Loading…
Reference in New Issue