fix #2394 - move us to current sprint

stable
Juanfran 2015-03-11 08:38:45 +01:00
parent 2529874cc2
commit 7a1f4c64a1
2 changed files with 5 additions and 2 deletions

View File

@ -605,7 +605,8 @@ BacklogDirective = ($repo, $rootscope) ->
ussDom = $el.find(".backlog-table-body .user-stories input:checkbox:checked")
ussToMove = _.map ussDom, (item) ->
itemScope = angular.element(item).scope()
item = $(item).closest('.tg-scope')
itemScope = item.scope()
itemScope.us.milestone = $scope.sprints[0].id
return itemScope.us

View File

@ -6,7 +6,9 @@ BindScope = (config) ->
link = ($scope, $el) ->
if !config.debugInfo
$el.data('scope', $scope)
$el
.data('scope', $scope)
.addClass('tg-scope')
return {link: link}