fix #1567 - remove active class when the estimation popover was closed

stable
Juanfran 2014-12-11 14:01:59 +01:00
parent 15b7a38a57
commit f2ee534669
1 changed files with 6 additions and 1 deletions

View File

@ -250,7 +250,12 @@ UsEstimationDirective = ($rootScope, $repo, $confirm, $qqueue) ->
# Render into DOM and show the new created element
$el.find(target).append(html)
$el.find(".pop-points-open").popover().open(-> $(this).removeClass("active"))
$el.find(".pop-points-open").popover().open ->
$(this)
.removeClass("active")
.closest("li").removeClass("active")
$el.find(".pop-points-open").show()
calculateTotalPoints = (us) ->