summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-12-27 14:58:06 +0100
committerAleksander Machniak <alec@alec.pl>2012-12-27 14:58:06 +0100
commit8809a1828477101ade03b261662df089e268ecb4 (patch)
treed98afbbc5641d0fb47c1eb0a70ec4e01f443f3ce /program
parent2b80d5dbf2ff301b0627b3a0e3c9a61e86658fd4 (diff)
Fix regression in handling of content frames (#1488884)
Diffstat (limited to 'program')
-rw-r--r--program/js/app.js7
1 files changed, 4 insertions, 3 deletions
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)