File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
Catalog/view/adminhtml/web/js
Cms/Block/Adminhtml/Wysiwyg/Images Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -33,24 +33,7 @@ define([
33
33
options . tree ,
34
34
{
35
35
core : {
36
- data : {
37
- url : options . url ,
38
- type : 'POST' ,
39
- dataFilter : $ . proxy ( function ( data ) {
40
- return this . _convertDataNodes ( JSON . parse ( data ) ) ;
41
- } , this ) ,
42
-
43
- /**
44
- * @param {HTMLElement } node
45
- * @return {Object }
46
- */
47
- data : function ( node ) {
48
- return {
49
- id : node . id === '#' ? null : node . id ,
50
- 'form_key' : window . FORM_KEY
51
- } ;
52
- }
53
- }
36
+ data : this . _convertData ( this . options . data ) . children
54
37
}
55
38
}
56
39
) ;
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ public function getTreeJson()
78
78
];
79
79
$ hasNestedDirectories = $ this ->hasNestedDirectories ($ storageRoot , $ item ->getFilename ());
80
80
81
- // if no nested directories inside dir, add 'leaf' state so that jstree hides dropdown arrow next to dir
81
+ // Display node as closed and enable lazy loading
82
82
if ($ hasNestedDirectories ) {
83
83
$ data ['children ' ] = true ;
84
84
}
You can’t perform that action at this time.
0 commit comments