Skip to content

Commit 17f4e50

Browse files
Merge branch 'MAGETWO-54401' of https://github.com/magento-tango/magento2ce into MAGETWO-54731
2 parents 23ee71f + 04a020a commit 17f4e50

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/web/mage/adminhtml/browser.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ define([
3131
},
3232
openDialog: function(url, width, height, title, options) {
3333
var windowId = this.windowId,
34-
content = '<div class="popup-window magento-message" "id="' + windowId + '"></div>',
34+
content = '<div class="popup-window magento-message" id="' + windowId + '"></div>',
3535
self = this;
3636

3737
if (this.modal) {
3838
this.modal.html($(content).html());
39-
this.modal.modal('option', 'closed', options.closed);
39+
if (options && typeof options.closed !== 'undefined') {
40+
this.modal.modal('option', 'closed', options.closed);
41+
}
4042
} else {
4143
this.modal = $(content).modal($.extend({
4244
title: title || 'Insert File...',

0 commit comments

Comments
 (0)