[FIX] web_editor: hide customize menu when there are no options

This commit is contained in:
Kishan Gajjar
2017-06-01 17:08:49 +02:00
committed by qsm-odoo
parent dbdbfa7432
commit 79477b8d96
@@ -1118,7 +1118,7 @@ data.Editor = Class.extend({
}).bind(this));
// Activate the overlay
$style_button.toggleClass("hidden", $ul.children(":not(.divider):not(.hidden)").length === 0);
$style_button.toggleClass("hidden", $ul.children(":not(.o_main_header):not(.divider):not(.hidden)").length === 0);
this.$overlay.toggleClass("oe_active", !!focus);
function _do_action_focus(style, $dest) {