From e9db6b6d9de1e0589e8871ca2e5e8dde8ec8cab7 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 19 Mar 2018 08:03:31 +0100 Subject: [FIX] web: search menus always available Before this rev., the search menus (Filters, Group By, Favorites) were lost when the user came back to an action with the breadcrumbs (e.g. go to My pipeline, open a lead, click on the Meetings stat button, go back to My pipeline). This was because the two searchviews shared the same jQuery element containing their dropdowns. This behavior is there for a long time, but the bug has been revealed by 7b6056a0, which changes the way the action manager and controllers interact with the control panel. Co-authored-by: Mathieu Duckerts-Antoine --- addons/web/static/src/js/chrome/control_panel.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'addons/web/static/src/js/chrome/control_panel.js') diff --git a/addons/web/static/src/js/chrome/control_panel.js b/addons/web/static/src/js/chrome/control_panel.js index 03b9e756bb7..558dde933e9 100644 --- a/addons/web/static/src/js/chrome/control_panel.js +++ b/addons/web/static/src/js/chrome/control_panel.js @@ -252,9 +252,6 @@ var ControlPanel = Widget.extend({ */ _update_search_view: function (searchview, isHidden, groupable) { if (searchview) { - // Set the $buttons div (in the DOM) of the searchview as the $buttons - // have been appended to a jQuery node not in the DOM at SearchView initialization - searchview.$buttons = this.nodes.$searchview_buttons; searchview.toggle_visibility(!isHidden); if (groupable !== undefined){ searchview.groupby_menu.do_toggle(groupable); -- cgit v1.2.3