Thomas Bruederli
2013-11-22 bf3018e7ed570b48d812fbd6b530123d4d65eacd
Trigger event when opening new windows with a reference to the window object (#1489413)
1 files modified
3 ■■■■■ changed files
program/js/app.js 3 ●●●●● patch | view | raw | blame | history
program/js/app.js
@@ -1728,6 +1728,9 @@
      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);