Skip to content

Commit

Permalink
Merge pull request #7404 from magento-trigger/AC-2066
Browse files Browse the repository at this point in the history
[Trigger] Bug Fixes
  • Loading branch information
fascinosum authored Jan 15, 2022
2 parents f5c555a + f3c5946 commit b12f867
Show file tree
Hide file tree
Showing 3 changed files with 3 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
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ define([
'margin-top' : topMargin,
'z-index': 1000
});
jQuery(this).closest('.ui-dialog').nextAll('.ui-widget-overlay').css('z-index', 999);
},
close: function () {
jQuery(this).closest('.ui-dialog').removeClass('ui-dialog-active');
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 b12f867

Please sign in to comment.