We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26e4df5 commit edf4017Copy full SHA for edf4017
lib/web/mage/adminhtml/browser.js
@@ -138,9 +138,10 @@ define([
138
'click #delete_files': 'deleteFiles',
139
'click #insert_files': 'insertSelectedFiles',
140
'fileuploaddone': '_uploadDone',
141
- 'click [data-row=breadcrumb]': 'selectFolder',
142
- 'reload.MediaGallery': 'reload'
+ 'click [data-row=breadcrumb]': 'selectFolder'
143
});
+
144
+ $(window).on('reload.MediaGallery', $.proxy(this.reload, this));
145
this.activeNode = null;
146
//tree dont use event bubbling
147
this.tree = this.element.find('[data-role=tree]');
0 commit comments