From 9fcc6234a4dc4da32c8d0f74440c31e24e2aa3ec Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 23 Apr 2014 08:40:35 +0200 Subject: [PATCH] Removed pop overs on rerender(). --- app/assets/javascripts/app/controllers/navigation.js.coffee | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/assets/javascripts/app/controllers/navigation.js.coffee b/app/assets/javascripts/app/controllers/navigation.js.coffee index 19492a6e4..9e7e1b07d 100644 --- a/app/assets/javascripts/app/controllers/navigation.js.coffee +++ b/app/assets/javascripts/app/controllers/navigation.js.coffee @@ -74,6 +74,9 @@ class App.Navigation extends App.Controller nav_left = @getItems( navbar: @Config.get( 'NavBar' ) ) nav_right = @getItems( navbar: @Config.get( 'NavBarRight' ) ) + # remove old popovers + $('.popover').remove() + # get open tabs to repopen on rerender open_tab = {} @el.find('.open').children('a').each( (i,d) =>