Skip to content

Commit

Permalink
Merge remote-tracking branch 'trigger/AC-2087' into AC-2066
Browse files Browse the repository at this point in the history
  • Loading branch information
krissyhiserote committed Jan 14, 2022
2 parents 6947e45 + 32778ff commit 2752ee1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ define([
showLoader: true
}).done($.proxy(function (data) {
if (typeof targetElement === 'function') {
targetElement(data.content);
targetElement(data.content, {text: record['title']});
} else if (targetElement.is('textarea')) {
this.insertAtCursor(targetElement.get(0), data.content);
targetElement.focus();
Expand Down
2 changes: 1 addition & 1 deletion lib/web/mage/adminhtml/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ define([
showLoader: true
}).done($.proxy(function (data) {
if (typeof targetEl === 'function') {
targetEl(data);
targetEl(data, {text: fileRow.find('img').attr('alt')});
} else if (targetEl.is('textarea')) {
this.insertAtCursor(targetEl.get(0), data);
} else {
Expand Down

0 comments on commit 2752ee1

Please sign in to comment.