From 5809c57eb382b5e1c2cadc7798c0396ef368c682 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Wed, 18 Apr 2018 11:40:23 +0000 Subject: [PATCH] Elastic: Support floating action buttons also on 'content' element not only 'list' --- skins/elastic/ui.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 27ca986e4..47372651f 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -529,7 +529,7 @@ function rcube_elastic_ui() } // Create floating action button(s) - if (layout.list.length && is_mobile()) { + if ((layout.list.length || layout.content.length) && is_mobile()) { var fabuttons = []; $('[data-fab]').each(function() { @@ -545,7 +545,8 @@ function rcube_elastic_ui() }); if (fabuttons.length) { - $('
').append(fabuttons).appendTo(layout.list); + $('
').append(fabuttons) + .appendTo(layout.list.length ? layout.list : layout.content); } }