Skip to content

Commit 610cd62

Browse files
committed
use modalLoaded per review comments
1 parent 9b21471 commit 610cd62

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/web/mage/adminhtml/browser.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ define([
1919
], function ($, wysiwyg, prompt, confirm, alert, _) {
2020
window.MediabrowserUtility = {
2121
windowId: 'modal_dialog_message',
22-
intialized: false,
22+
modalLoaded: false,
2323
targetElementId: false,
2424

2525
/**
@@ -53,7 +53,7 @@ define([
5353
var windowId = this.windowId,
5454
content = '<div class="popup-window" id="' + windowId + '"></div>';
5555

56-
if (this.initialized) {
56+
if (this.modalLoaded) {
5757

5858
if (!_.isUndefined(options)) {
5959
this.modal.modal('option', 'closed', options.closed);
@@ -83,7 +83,7 @@ define([
8383

8484
}).done(function (data) {
8585
this.modal.html(data).trigger('contentUpdated');
86-
this.initialized = true;
86+
this.modalLoaded = true;
8787
this.setTargetElementId(options, url);
8888
}.bind(this));
8989

0 commit comments

Comments
 (0)