From bf3018e7ed570b48d812fbd6b530123d4d65eacd Mon Sep 17 00:00:00 2001 From: Thomas Bruederli Date: Fri, 22 Nov 2013 09:21:27 +0100 Subject: Trigger event when opening new windows with a reference to the window object (#1489413) --- program/js/app.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'program') 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('' + this.get_label('loading') + ''); } + // 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); -- cgit v1.2.3