From 834266c469dbcc4a71413929a4a26e9f7fc6caeb Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Fri, 25 Jan 2019 12:18:13 +0100 Subject: [PATCH] Elastic: Close popups when switching tabs --- skins/elastic/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index df37ac132..f7520ac9a 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -930,8 +930,10 @@ function rcube_elastic_ui() $('').addClass('nav-link' + (tab_class ? ' ' + tab_class : '')) .attr({role: 'tab', 'href': '#' + id}) .text($('legend:first', fieldset).text()) - .click(function() { + .click(function(e) { $(this).tab('show'); + // Because we return false we have to close popups + popups_close(e); // Returning false here prevents from strange scrolling issue // when the form is in an iframe, e.g. contact edit form return false;