fix #2394 - move us to current sprint
parent
2529874cc2
commit
7a1f4c64a1
|
@ -605,7 +605,8 @@ BacklogDirective = ($repo, $rootscope) ->
|
||||||
ussDom = $el.find(".backlog-table-body .user-stories input:checkbox:checked")
|
ussDom = $el.find(".backlog-table-body .user-stories input:checkbox:checked")
|
||||||
|
|
||||||
ussToMove = _.map ussDom, (item) ->
|
ussToMove = _.map ussDom, (item) ->
|
||||||
itemScope = angular.element(item).scope()
|
item = $(item).closest('.tg-scope')
|
||||||
|
itemScope = item.scope()
|
||||||
itemScope.us.milestone = $scope.sprints[0].id
|
itemScope.us.milestone = $scope.sprints[0].id
|
||||||
return itemScope.us
|
return itemScope.us
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,9 @@ BindScope = (config) ->
|
||||||
|
|
||||||
link = ($scope, $el) ->
|
link = ($scope, $el) ->
|
||||||
if !config.debugInfo
|
if !config.debugInfo
|
||||||
$el.data('scope', $scope)
|
$el
|
||||||
|
.data('scope', $scope)
|
||||||
|
.addClass('tg-scope')
|
||||||
|
|
||||||
return {link: link}
|
return {link: link}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue