summaryrefslogtreecommitdiff
path: root/roundcubemail/program/js
diff options
context:
space:
mode:
authoralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-22 17:41:22 +0000
committeralec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c>2008-10-22 17:41:22 +0000
commit2c0cb1f5c4380232636aa9b796b8fd6d1270f963 (patch)
tree33ff8b31f6047c9a71994d6ef75a72b2dbf9cc01 /roundcubemail/program/js
parentb1359c83d8eca955de20a8291098e34c5f03405d (diff)
- Added option focus_on_new_message (#1485374)
git-svn-id: https://svn.roundcube.net/trunk@2003 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/js')
-rw-r--r--roundcubemail/program/js/app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/roundcubemail/program/js/app.js b/roundcubemail/program/js/app.js
index fc99871b1..6994d1893 100644
--- a/roundcubemail/program/js/app.js
+++ b/roundcubemail/program/js/app.js
@@ -3582,6 +3582,16 @@ function rcube_webmail()
}
};
+ // notifies that a new message(s) has hit the mailbox
+ this.new_message_focus = function()
+ {
+ // focus main window
+ if (this.env.framed && window.parent)
+ window.parent.focus();
+ else
+ window.focus();
+ }
+
// add row to contacts list
this.add_contact_row = function(cid, cols, select)
{