Fixed pop points in new user story form

stable
Xavier Julián 2014-09-26 13:29:20 +02:00
parent 758d9d7abe
commit 093508bb8a
2 changed files with 9 additions and 3 deletions

View File

@ -420,7 +420,7 @@ UsEstimationDirective = ($log) ->
html = mainTemplate({totalPoints: totalPoints, roles: roles})
$el.html(html)
renderPoints = (us, roleId) ->
renderPoints = (target, us, roleId) ->
points = _.map $scope.project.points, (point) ->
point = _.clone(point, true)
point.selected = if us.points[roleId] == point.id then false else true
@ -439,7 +439,7 @@ UsEstimationDirective = ($log) ->
$el.find(".pop-points-open").remove()
# Render into DOM and show the new created element
$el.find(".points-per-role").append(html)
$el.find(target).append(html)
$el.find(".pop-points-open").popover().open(-> $(this).removeClass("active"))
$el.find(".pop-points-open").show()
@ -463,7 +463,7 @@ UsEstimationDirective = ($log) ->
roleId = target.data("role-id")
us = $scope.$eval($attrs.ngModel)
renderPoints(us, roleId)
renderPoints(target, us, roleId)
target.siblings().removeClass('active')
target.addClass('active')

View File

@ -165,6 +165,12 @@
display: none;
}
}
.points-per-role {
.popover {
@include popover(200px, $top: 105%, $left: 35%, $arrow-width: 10px, $arrow-top: -5px, $arrow-left: 10px);
color: orange;
}
}
}
.lightbox-generic-bulk {