Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Apr 12, 2019
1 parent bbe03ea commit 84f0af8
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions lib/web/mage/adminhtml/wysiwyg/tiny_mce/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,16 +238,20 @@ define([
* @param {Object} o
*/
openFileBrowser: function (o) {
var targetElementID = tinymce.activeEditor.getElement().getAttribute('id');
var originId = this.id;
var targetElementID = tinyMCE.activeEditor.getElement().getAttribute('id'),
originId = this.id,
typeTitle,
storeId,
frameDialog,
wUrl;

this.initialize(targetElementID, this.config);

var typeTitle,
storeId = this.config['store_id'] !== null ? this.config['store_id'] : 0,
frameDialog = jQuery(o.win.frameElement).parents('[role="dialog"]'),
wUrl = this.config['files_browser_window_url'] +
'target_element_id/' + this.id + '/' +
'store/' + storeId + '/';
storeId = this.config['store_id'] !== null ? this.config['store_id'] : 0;
frameDialog = jQuery(o.win.frameElement).parents('[role="dialog"]');
wUrl = this.config['files_browser_window_url'] +
'target_element_id/' + this.id + '/' +
'store/' + storeId + '/';

this.mediaBrowserOpener = o.win;
this.mediaBrowserTargetElementId = o.field;
Expand Down

0 comments on commit 84f0af8

Please sign in to comment.