diff --git a/app/coffee/modules/common/popovers.coffee b/app/coffee/modules/common/popovers.coffee index 2d1631b2..631bca29 100644 --- a/app/coffee/modules/common/popovers.coffee +++ b/app/coffee/modules/common/popovers.coffee @@ -71,6 +71,7 @@ UsStatusDirective = ($repo) -> $el.on "click", ".us-status", (event) -> event.preventDefault() event.stopPropagation() + $(".popover").hide() $el.find(".pop-status").show() body = angular.element("body") diff --git a/app/coffee/modules/issues/detail.coffee b/app/coffee/modules/issues/detail.coffee index 61525d64..524e12ea 100644 --- a/app/coffee/modules/issues/detail.coffee +++ b/app/coffee/modules/issues/detail.coffee @@ -249,6 +249,7 @@ IssueStatusDirective = () -> $el.on "click", ".severity-data", (event) -> event.preventDefault() event.stopPropagation() + $(".popover").hide() $el.find(".pop-severity").show() body = angular.element("body") body.one "click", (event) -> @@ -265,6 +266,7 @@ IssueStatusDirective = () -> $el.on "click", ".priority-data", (event) -> event.preventDefault() event.stopPropagation() + $(".popover").hide() $el.find(".pop-priority").show() body = angular.element("body") body.one "click", (event) -> @@ -281,6 +283,7 @@ IssueStatusDirective = () -> $el.on "click", ".status-data", (event) -> event.preventDefault() event.stopPropagation() + $(".popover").hide() $el.find(".pop-status").show() body = angular.element("body") body.one "click", (event) -> diff --git a/app/coffee/modules/tasks/detail.coffee b/app/coffee/modules/tasks/detail.coffee index fab1c15e..4cd952c2 100644 --- a/app/coffee/modules/tasks/detail.coffee +++ b/app/coffee/modules/tasks/detail.coffee @@ -207,6 +207,7 @@ TaskStatusDirective = () -> $el.on "click", ".status-data", (event) -> event.preventDefault() event.stopPropagation() + $(".popover").hide() $el.find(".pop-status").show() body = angular.element("body") body.one "click", (event) -> diff --git a/app/coffee/modules/userstories/detail.coffee b/app/coffee/modules/userstories/detail.coffee index e419a6cd..8f7473f3 100644 --- a/app/coffee/modules/userstories/detail.coffee +++ b/app/coffee/modules/userstories/detail.coffee @@ -235,6 +235,7 @@ UsStatusDetailDirective = () -> $el.find(".points-per-role").append(selectionPointsTemplate({ "points": $scope.project.points })) $el.find(".pop-points-open a[data-point-id='#{us.points[updatingSelectedRoleId]}']").addClass("active") # If not showing role selection let's move to the left + $(".popover").hide() $el.find(".pop-points-open").show() calculateTotalPoints = (us)-> @@ -278,6 +279,7 @@ UsStatusDetailDirective = () -> $el.on "click", ".status-data", (event) -> event.preventDefault() event.stopPropagation() + $(".popover").hide() $el.find(".pop-status").show() body = angular.element("body") body.one "click", (event) ->