From e6ea12c75c15ae256caf5f422be8ecee692651eb Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Tue, 22 Mar 2016 09:50:35 +0100 Subject: [PATCH] Do not remove permanent .popover--notifications widget. --- .../app/controllers/_application_controller.coffee | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/app/controllers/_application_controller.coffee b/app/assets/javascripts/app/controllers/_application_controller.coffee index 07645cbc2..9132145b2 100644 --- a/app/assets/javascripts/app/controllers/_application_controller.coffee +++ b/app/assets/javascripts/app/controllers/_application_controller.coffee @@ -469,7 +469,9 @@ class App.Controller extends Spine.Controller @userTicketPopupsList.popover('destroy') anyPopoversDestroy: -> - $('.popover').remove() + + # do not remove permanent .popover--notifications widget + $('.popover:not(.popover--notifications)').remove() recentView: (object, o_id) => params =