diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index bdc082ecc..6dbb4bd2c 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -512,8 +512,15 @@ function rcube_elastic_ui() .on('click', function() { if ($(this).is('.active')) table.toggleClass('withselection'); }) .append($('').text(rcmail.gettext('select'))); - if (toolbar.is('.toolbar')) { + if (toolbar.is('.toolbar') || toolbar.is('.toolbarmenu')) { button.prependTo(toolbar).wrap('
  • '); + + // Add a button to the content toolbar menu too + if (layout.content) { + var button2 = create_cloned_button(button, true, 'hidden-big hidden-large'); + $('
  • ').append(button2).appendTo('#toolbar-menu'); + button = button.add(button2); + } } else { button.appendTo(toolbar).addClass('icon');