From 3ec7697ccf172884d06dd99449906b5dca89d7e5 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Mon, 7 Aug 2017 11:50:30 +0200 Subject: [PATCH] Fix title "leaking" to parent window from dialog frames --- skins/elastic/ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skins/elastic/ui.js b/skins/elastic/ui.js index 4579562d3..71055992c 100644 --- a/skins/elastic/ui.js +++ b/skins/elastic/ui.js @@ -105,8 +105,8 @@ function rcube_elastic_ui() $('body').on('click', function() { if (mode == 'phone') layout.menu.addClass('hidden'); }); - // Set content frame title in parent window - if (rcmail.is_framed() && !rcmail.env.extwin) { + // Set content frame title in parent window (exclude ext-windows and dialog frames) + if (rcmail.is_framed() && !rcmail.env.extwin && !parent.$('.ui-dialog:visible').length) { var title = $('h1.voice:first').text(); if (title) { parent.$('#content > .header > .header-title').text(title);