Skip to content

Commit 8a62a0c

Browse files
AC-246: Update MFTF Tests
- fix static failures
1 parent dbdef9f commit 8a62a0c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/grid/columns/image/insertImageAction.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,16 +40,16 @@ define([
4040
filename: record['encoded_id'],
4141
'store_id': config.storeId,
4242
'as_is': typeof targetElement !== 'function' && targetElement.is('textarea') ? 1 : 0,
43-
'force_static_path': typeof targetElement !== 'function' && targetElement.data('force_static_path') ? 1 : 0,
43+
'force_static_path': typeof targetElement !== 'function' && targetElement.data('force_static_path')
44+
? 1 : 0,
4445
'form_key': FORM_KEY
4546
},
4647
context: this,
4748
showLoader: true
4849
}).done($.proxy(function (data) {
49-
if(typeof targetElement === 'function') {
50+
if (typeof targetElement === 'function') {
5051
targetElement(data.content);
51-
}
52-
else if (targetElement.is('textarea')) {
52+
} else if (targetElement.is('textarea')) {
5353
this.insertAtCursor(targetElement.get(0), data.content);
5454
targetElement.focus();
5555
$(targetElement).trigger('change');

0 commit comments

Comments
 (0)