summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsvncommit <devs@roundcube.net>2007-10-17 08:03:17 +0000
committersvncommit <devs@roundcube.net>2007-10-17 08:03:17 +0000
commit18197044382034fb26ef862e8d88b89c4e14593b (patch)
tree6accdfc8db5c02a833ae6e333f2c24c8e2b2e0a0
parent7c7cc18177c88da6ea75682aa66fc30cabb6cc6c (diff)
Make sure the _main_ window is focussed (closes #1484138).
-rw-r--r--program/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/program/js/app.js b/program/js/app.js
index b2e7dde3a..86d2eb6cf 100644
--- a/program/js/app.js
+++ b/program/js/app.js
@@ -203,8 +203,11 @@ function rcube_webmail()
this.set_page_buttons();
- // focus this window
- window.focus();
+ // focus main window
+ if (this.env.framed && window.parent)
+ window.parent.focus();
+ else
+ window.focus();
// init message compose form
if (this.env.action=='compose')