summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-10-17 08:03:17 +0000
committerrobin <robin@208e9e7b-5314-0410-a742-e7e81cd9613c>2007-10-17 08:03:17 +0000
commit536872f6242db683f1dd880d5d3c830b8c91dc0f (patch)
tree1bee85492d835bc17052ce84fa461280a53c34b9
parentcab58389ecf6e811b41511cb39531b6b82bd0ef5 (diff)
Make sure the _main_ window is focussed (closes #1484138).
git-svn-id: https://svn.roundcube.net/trunk@878 208e9e7b-5314-0410-a742-e7e81cd9613c
-rw-r--r--roundcubemail/program/js/app.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index b2e7dde3a..86d2eb6cf 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/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')