From 8809a1828477101ade03b261662df089e268ecb4 Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 27 Dec 2012 14:58:06 +0100 Subject: Fix regression in handling of content frames (#1488884) --- program/js/app.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'program') diff --git a/program/js/app.js b/program/js/app.js index 4935dce24..5b8c2cd2f 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -441,10 +441,11 @@ function rcube_webmail() this.enable_command('login', true); break; + } - default: - break; - } + // unset contentframe variable if preview_pane is enabled + if (this.env.contentframe && !$('#' + this.env.contentframe).is(':visible')) + this.env.contentframe = null; // prevent from form submit with Enter key in file input fields if (bw.ie) -- cgit v1.2.3