Skip to content

Commit e32f4f1

Browse files
author
Ievgen Sentiabov
committed
MAGETWO-43348: Contribute to mainline
- Refactored code related to failed tests
1 parent 30a5e24 commit e32f4f1

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

app/code/Magento/Paypal/view/adminhtml/web/js/rules/payflow/express/usedefault-disable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
define([
66
'Magento_Paypal/js/rules/payflow/express/enable'
77
], function (enableExpress) {
8-
"use strict";
8+
'use strict';
9+
910
return function ($target, $owner, data) {
11+
1012
$target.find('input[id="' + $target.find(data.enableExpress).attr('id') + '_inherit"]').prop('checked', false);
1113
enableExpress($target, $owner, data);
1214
$target.find(data.enableExpress).change();

app/code/Magento/Paypal/view/adminhtml/web/js/rules/payflow/express/usedefault-enable.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@
55
define([
66
'Magento_Paypal/js/rules/payflow/express/disable'
77
], function (disableExpress) {
8-
"use strict";
8+
'use strict';
9+
910
return function ($target, $owner, data) {
11+
1012
$target.find('input[id="' + $target.find(data.enableExpress).attr('id') + '_inherit"]').prop('checked', true);
1113
disableExpress($target, $owner, data);
1214
$target.find(data.enableExpress).change();

0 commit comments

Comments
 (0)