Skip to content

Commit d56adbb

Browse files
committed
Revert event add checks that method not fires two times at the time
1 parent dc1ab99 commit d56adbb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ define([
293293
};
294294

295295
varienGlobalEvents.fireEvent('open_browser_callback', payload);
296+
this.eventBus.fireEvent('open_browser_callback', payload);
296297
}.bind(this);
297298
}
298299

@@ -372,7 +373,7 @@ define([
372373
/**
373374
* @param {Object} o
374375
*/
375-
openFileBrowser: function (o) {
376+
openFileBrowser: _.debounce(function (o) {
376377
var typeTitle = this.translate('Select Images'),
377378
storeId = this.config['store_id'] ? this.config['store_id'] : 0,
378379
frameDialog = jQuery('div.mce-container[role="dialog"]'),
@@ -405,7 +406,7 @@ define([
405406
}
406407
);
407408
});
408-
},
409+
}, 250),
409410

410411
/**
411412
* @param {String} string

0 commit comments

Comments
 (0)