[backport] Fix broken links of tasks in user story detail page

stable
David Barragán Merino 2017-03-12 18:47:08 +01:00 committed by xaviju
parent c6df85cf00
commit e70e521e64
1 changed files with 1 additions and 5 deletions

View File

@ -77,16 +77,12 @@ RelatedTaskRowDirective = ($repo, $compile, $confirm, $rootscope, $loading, $tem
renderView($model.$modelValue)
renderView = (task) ->
@childScope.$destroy()
@childScope = $scope.$new()
$el.off()
perms = {
modify_task: $scope.project.my_permissions.indexOf("modify_task") != -1
delete_task: $scope.project.my_permissions.indexOf("delete_task") != -1
}
$el.html($compile(templateView({task: task, perms: perms}))(childScope))
$el.html($compile(templateView({task: task, perms: perms}))($scope))
$el.on "click", ".edit-task", ->
renderEdit($model.$modelValue)