From f81112de95f29d62f7a478ffad8711d2f9755784 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Sun, 28 May 2017 10:13:59 +0200 Subject: [PATCH] Fix disappearing toolbar after switching from mobile to desktop mode by appending the menu back to the header box --- skins/elastic/ui.js | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) 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($('