From ab368a7ec1df67f50a2e02fa32cf81fd73fceea1 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 13 Apr 2017 12:26:15 +0200 Subject: [PATCH] First take on Bootstrap Tabs (contact info/edit frame) --- skins/elastic/ui.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index f4451f077..64e836b7c 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -276,6 +276,35 @@ function rcube_elastic_ui() row.addClass(row_classes.join(' ')); }); + // Testing Bootstrap Tabs on contact info/edit page + // Tabs do not scale nicely on very small screen, so can be used + // only with small number of tabs with short text labels + // TODO: Should we use Accordion widget instead on mobile? + $('.tabbed', context).each(function(idx, item) { + var tabs = [], nav = $('