diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 22151b3f3..88f5a5b1e 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -809,16 +809,15 @@ function rcube_elastic_ui() // append the new toolbar and menu button if (items.length) { - var menu_button = $('') - .attr({'data-popup': 'toolbar-menu'}); + var container = layout.content.children('.header'), + menu_attrs = {'class': 'toolbar popupmenu listing', id: 'toolbar-menu'}, + menu_button = $('') + .attr({'data-popup': 'toolbar-menu'}); - layout.content.children('.header') + container // TODO: copy original toolbar attributes (class, role, aria-*) - .append($('