File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
app/code/Magento/MediaGalleryUi/view/adminhtml/web/js/directory Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -74,9 +74,7 @@ define([
74
74
[ this . getNewFolderPath ( folderName ) ]
75
75
) . then ( function ( ) {
76
76
this . directoryTree ( ) . reloadJsTree ( ) . then ( function ( ) {
77
- $ ( this . directoryTree ( ) . directoryTreeSelector ) . on ( 'refresh.jstree' , function ( ) {
78
- this . directoryTree ( ) . locateNode ( this . getNewFolderPath ( folderName ) ) ;
79
- } . bind ( this ) ) ;
77
+ this . directoryTree ( ) . locateNode ( this . getNewFolderPath ( folderName ) ) ;
80
78
} . bind ( this ) ) ;
81
79
} . bind ( this ) ) . fail ( function ( error ) {
82
80
uiAlert ( {
Original file line number Diff line number Diff line change @@ -425,7 +425,7 @@ define([
425
425
426
426
this . getJsonTree ( ) . then ( function ( data ) {
427
427
$ ( this . directoryTreeSelector ) . jstree ( true ) . settings . core . data = data ;
428
- $ ( this . directoryTreeSelector ) . jstree ( true ) . refresh ( ) ;
428
+ $ ( this . directoryTreeSelector ) . jstree ( true ) . refresh ( false , true ) ;
429
429
this . setJsTreeReloaded ( true ) ;
430
430
deferred . resolve ( ) ;
431
431
} . bind ( this ) ) ;
You can’t perform that action at this time.
0 commit comments