Fix bug with event.event.target being undefined (#3683)

This commit is contained in:
Simon Huber 2019-01-14 10:41:19 +01:00 committed by Jeremy Ruston
parent bfd09133de
commit 95dbdff08a
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ Modal.prototype.display = function(title,options) {
options = options || {};
this.srcDocument = options.variables && (options.variables.rootwindow === "true" ||
options.variables.rootwindow === "yes") ? document :
(options.event.event ? options.event.event.target.ownerDocument : document);
(options.event.event && options.event.event.target ? options.event.event.target.ownerDocument : document);
this.srcWindow = this.srcDocument.defaultView;
var self = this,
refreshHandler,