summaryrefslogtreecommitdiff
path: root/program/js
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2008-10-22 17:41:22 +0000
committeralecpl <alec@alec.pl>2008-10-22 17:41:22 +0000
commit06343d189ea9a58713fff0482b7cb8e48190f8a0 (patch)
tree7faa05e711b807794e5e8efd3d5b926885f6a506 /program/js
parentfe7618f1baf08fe8f579b2efdbb7e5200b60e6d4 (diff)
- Added option focus_on_new_message (#1485374)
Diffstat (limited to 'program/js')
-rw-r--r--program/js/app.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js
index fc99871b1..6994d1893 100644
--- a/program/js/app.js
+++ b/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)
{