File tree Expand file tree Collapse file tree 11 files changed +20
-20
lines changed
templates/product/edit/bundle/option
ConfigurableProduct/view/adminhtml/web/js/variations/steps
GroupedProduct/view/adminhtml/web/js
Paypal/view/frontend/web/js Expand file tree Collapse file tree 11 files changed +20
-20
lines changed Original file line number Diff line number Diff line change @@ -159,9 +159,9 @@ Bundle.Selection.prototype = {
159
159
$ grid.find('.checkbox').prop({checked: false});
160
160
161
161
var checkRowBySku = function (sku) {
162
- sku = $ .trim(sku );
162
+ sku = sku .trim();
163
163
$ grid.find('.sku').filter(function () {
164
- return $.trim($( this).text()) == sku;
164
+ return $( this).text().trim( ) == sku;
165
165
}).closest('tr').find('.checkbox').prop({checked: true});
166
166
};
167
167
$.each(bSelection.gridSelection.values().pop().toArray(), function () {
Original file line number Diff line number Diff line change @@ -146,8 +146,8 @@ define([
146
146
147
147
if ( $ ( this ) . is ( ':checked' ) ) {
148
148
selectedProductList [ $ ( this ) . val ( ) ] = {
149
- name : $ . trim ( tr . find ( '.col-name' ) . html ( ) ) ,
150
- sku : $ . trim ( tr . find ( '.col-sku' ) . html ( ) ) ,
149
+ name : tr . find ( '.col-name' ) . html ( ) . trim ( ) ,
150
+ sku : tr . find ( '.col-sku' ) . html ( ) . trim ( ) ,
151
151
'product_id' : $ ( this ) . val ( ) ,
152
152
'option_id' : $ ( 'bundle_selection_id_' + optionIndex ) . val ( ) ,
153
153
'selection_price_value' : 0 ,
@@ -186,7 +186,7 @@ define([
186
186
} ) ;
187
187
bSelection . gridRemoval . each ( function ( pair ) {
188
188
$optionBox . find ( '.col-sku' ) . filter ( function ( ) {
189
- return $ . trim ( $ ( this ) . text ( ) ) === pair . key ; // find row by SKU
189
+ return $ ( this ) . text ( ) . trim ( ) === pair . key ; // find row by SKU
190
190
} ) . closest ( 'tr' ) . find ( 'button.delete' ) . trigger ( 'click' ) ;
191
191
} ) ;
192
192
widget . refreshSortableElements ( ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ define([
77
77
. closest ( this . options . summaryContainer )
78
78
. find ( this . options . templates . summaryBlock )
79
79
. html ( ) ;
80
- template = mageTemplate ( $ . trim ( template ) , {
80
+ template = mageTemplate ( template . trim ( ) , {
81
81
data : {
82
82
_label_ : this . cache . currentElement . options [ key ] . title
83
83
}
@@ -107,7 +107,7 @@ define([
107
107
. closest ( this . options . summaryContainer )
108
108
. find ( this . options . templates . optionBlock )
109
109
. html ( ) ;
110
- template = mageTemplate ( $ . trim ( template ) , {
110
+ template = mageTemplate ( template . trim ( ) , {
111
111
data : {
112
112
_quantity_ : this . cache . currentElement . options [ this . cache . currentKey ] . selections [ optionIndex ] . qty ,
113
113
_label_ : this . cache . currentElement . options [ this . cache . currentKey ] . selections [ optionIndex ] . name
Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ define([
106
106
errorOption ,
107
107
allOptions = [ ] ;
108
108
109
- newOption . label = $ . trim ( newOption . label ) ;
109
+ newOption . label = newOption . label . trim ( ) ;
110
110
111
111
if ( _ . isEmpty ( newOption . label ) ) {
112
112
return false ;
Original file line number Diff line number Diff line change @@ -159,7 +159,7 @@ define([
159
159
product . id = element . val ( ) ;
160
160
product . qty = 0 ;
161
161
element . closest ( '[data-role=row]' ) . find ( '[data-column]' ) . each ( function ( index , el ) {
162
- product [ $ ( el ) . data ( 'column' ) ] = $ . trim ( $ ( el ) . text ( ) ) ;
162
+ product [ $ ( el ) . data ( 'column' ) ] = $ ( el ) . text ( ) . trim ( ) ;
163
163
} ) ;
164
164
selectedProductList [ product . id ] = product ;
165
165
} else {
Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ define([
285
285
isChecked = $ ( this . options . billingAsShippingSelector ) . is ( ':checked' ) ;
286
286
formData = null ;
287
287
callBackResponseHandler = null ;
288
- shippingMethod = $ . trim ( $ ( this . options . shippingSelector ) . val ( ) ) ;
288
+ shippingMethod = $ ( this . options . shippingSelector ) . val ( ) . trim ( ) ;
289
289
this . _shippingTobilling ( ) ;
290
290
291
291
if ( url && resultId && shippingMethod ) {
@@ -358,7 +358,7 @@ define([
358
358
* Actions on change Shipping Address data
359
359
*/
360
360
_onShippingChange : function ( ) {
361
- if ( this . triggerPropertyChange && $ . trim ( $ ( this . options . shippingSelector ) . val ( ) ) ) {
361
+ if ( this . triggerPropertyChange && $ ( this . options . shippingSelector ) . val ( ) . trim ( ) ) {
362
362
this . element . find ( this . options . shippingSelector ) . hide ( ) . end ( )
363
363
. find ( this . options . shippingSelector + '_update' ) . show ( ) ;
364
364
}
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ define([
20
20
21
21
templateLoader . loadTemplate ( blockLoaderTemplatePath ) . done ( function ( blockLoaderTemplate ) {
22
22
loaderImageHref . done ( function ( loaderHref ) {
23
- blockLoader = template ( $ . trim ( blockLoaderTemplate ) , {
23
+ blockLoader = template ( blockLoaderTemplate . trim ( ) , {
24
24
loaderImageHref : loaderHref
25
25
} ) ;
26
26
blockLoader = $ ( blockLoader ) ;
Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ define([
458
458
return false ;
459
459
}
460
460
461
- pass = $ . trim ( value ) ;
461
+ pass = value . trim ( ) ;
462
462
463
463
if ( ! pass . length ) {
464
464
return true ;
@@ -476,7 +476,7 @@ define([
476
476
return false ;
477
477
}
478
478
479
- pass = $ . trim ( value ) ;
479
+ pass = value . trim ( ) ;
480
480
481
481
if ( pass . length === 0 ) {
482
482
return true ;
@@ -500,7 +500,7 @@ define([
500
500
counter = 0 ,
501
501
passwordMinLength = $ ( elm ) . data ( 'password-min-length' ) ,
502
502
passwordMinCharacterSets = $ ( elm ) . data ( 'password-min-character-sets' ) ,
503
- pass = $ . trim ( v ) ,
503
+ pass = v . trim ( ) ,
504
504
result = pass . length >= passwordMinLength ;
505
505
506
506
if ( result === false ) {
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ define([
148
148
* @private
149
149
*/
150
150
_value : function ( ) {
151
- return $ . trim ( this . element [ this . element . is ( ':input' ) ? 'val' : 'text' ] ( ) ) ;
151
+ return this . element [ this . element . is ( ':input' ) ? 'val' : 'text' ] ( ) . trim ( ) ;
152
152
} ,
153
153
154
154
/**
Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ define([
166
166
* @return {String }
167
167
*/
168
168
getSearchCriteria : function ( ) {
169
- return $ . trim ( this . $input . val ( ) ) ;
169
+ return this . $input . val ( ) . trim ( ) ;
170
170
} ,
171
171
172
172
/**
You can’t perform that action at this time.
0 commit comments