[FIX] Web: ControlPanel: hide ControlPanel on breadcrumb click

if the inner widget doesn't use it.
This commit is contained in:
Aaron Bohy
2015-05-15 16:08:18 +02:00
parent 50a043d979
commit a8a9fe821a
@@ -276,6 +276,11 @@ var ActionManager = Widget.extend({
var action_index = this.action_stack.indexOf(action);
this.clear_action_stack(this.action_stack.splice(action_index + 1));
// Hide the ControlPanel if the widget doesn't use it
if (!this.inner_widget.need_control_panel) {
this.main_control_panel.do_hide();
}
return action.restore(index);
},
clear_action_stack: function(action_stack) {