diff options
author | Thomas Bruederli <thomas@roundcube.net> | 2013-11-22 09:21:27 +0100 |
---|---|---|
committer | Thomas Bruederli <thomas@roundcube.net> | 2013-11-22 09:21:27 +0100 |
commit | bf3018e7ed570b48d812fbd6b530123d4d65eacd (patch) | |
tree | c5ed704070ca38288e833e4ed3e497aed1dc7356 /program | |
parent | ecb5bd7bd139a45b6c1a4f6e002b3b10e3311da7 (diff) |
Trigger event when opening new windows with a reference to the window object (#1489413)
Diffstat (limited to 'program')
-rw-r--r-- | program/js/app.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/program/js/app.js b/program/js/app.js index 636db82d4..e6c580dd8 100644 --- a/program/js/app.js +++ b/program/js/app.js @@ -1728,6 +1728,9 @@ function rcube_webmail() extwin.document.write('<html><body>' + this.get_label('loading') + '</body></html>'); } + // allow plugins to grab the window reference (#1489413) + this.triggerEvent('openwindow', { url:url, handle:extwin }); + // focus window, delayed to bring to front window.setTimeout(function() { extwin && extwin.focus(); }, 10); |