File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
app/code/Magento/Ui/view/base/web/js/grid
dev/tests/js/jasmine/tests/app/code/Magento/Ui/base/js/grid Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change 5
5
6
6
define ( [
7
7
'uiComponent' ,
8
- 'underscore' ,
8
+ 'underscore'
9
9
] , function ( Component , _ ) {
10
10
'use strict' ;
11
11
@@ -15,7 +15,7 @@ define([
15
15
filterKey : 'filters' ,
16
16
searchString : location . search ,
17
17
modules : {
18
- filterComponent : '${ $.filterProvider }' ,
18
+ filterComponent : '${ $.filterProvider }'
19
19
}
20
20
} ,
21
21
@@ -38,12 +38,14 @@ define([
38
38
var urlFilter = this . getFilterParam ( this . searchString ) ;
39
39
40
40
if ( _ . isUndefined ( this . filterComponent ( ) ) ) {
41
- setTimeout ( function ( ) { this . apply ( ) } . bind ( this ) , 100 ) ;
41
+ setTimeout ( function ( ) {
42
+ this . apply ( ) ;
43
+ } . bind ( this ) , 100 ) ;
42
44
} else {
43
45
if ( Object . keys ( urlFilter ) . length ) {
44
- this . filterComponent ( ) . setData ( urlFilter , false ) ;
45
- this . filterComponent ( ) . apply ( ) ;
46
- }
46
+ this . filterComponent ( ) . setData ( urlFilter , false ) ;
47
+ this . filterComponent ( ) . apply ( ) ;
48
+ }
47
49
}
48
50
} ,
49
51
Original file line number Diff line number Diff line change @@ -25,7 +25,9 @@ define([
25
25
it ( 'return object from url with a simple filters parameter' , function ( ) {
26
26
var urlSearch = '?filters[name]=test' ;
27
27
28
- expect ( urlFilterApplierObj . getFilterParam ( urlSearch ) ) . toEqual ( { 'name' : 'test' } ) ;
28
+ expect ( urlFilterApplierObj . getFilterParam ( urlSearch ) ) . toEqual ( {
29
+ 'name' : 'test'
30
+ } ) ;
29
31
} ) ;
30
32
it ( 'return object from url with multiple filters parameter' , function ( ) {
31
33
var urlSearch = '?filters[name]=test&filters[qty]=1' ;
You can’t perform that action at this time.
0 commit comments