diff --git a/core/modules/utils/dom/modal.js b/core/modules/utils/dom/modal.js index 0f65c8f63..1e77e0361 100644 --- a/core/modules/utils/dom/modal.js +++ b/core/modules/utils/dom/modal.js @@ -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,