File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Cms/Model/Wysiwyg/Gallery
Ui/view/base/web/js/form/element Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,8 @@ public function getConfig(\Magento\Framework\DataObject $config) : \Magento\Fram
78
78
if (is_string ($ this ->currentTreePath )) {
79
79
$ fileBrowserUrlParams = [
80
80
'current_tree_path ' => $ this ->imagesHelper ->idEncode ($ this ->currentTreePath ),
81
+ 'tree_path ' => $ this ->currentTreePath . '& '
82
+
81
83
];
82
84
}
83
85
Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ define([
78
78
'/type/image/?isAjax=true' ;
79
79
80
80
if ( this . mediaGallery . initialOpenSubpath ) {
81
+ openDialogUrl += '/tree_path/' + this . mediaGallery . initialOpenSubpath ;
81
82
openDialogUrl += '¤t_tree_path=' + Base64 . mageEncode ( this . mediaGallery . initialOpenSubpath ) ;
82
83
}
83
84
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ define([
21
21
windowId : 'modal_dialog_message' ,
22
22
modalLoaded : false ,
23
23
targetElementId : false ,
24
+ currentTreePath : '' ,
24
25
25
26
/**
26
27
* @return {Number }
@@ -96,6 +97,7 @@ define([
96
97
* @param {String } url
97
98
*/
98
99
setTargetElementId : function ( options , url ) {
100
+ this . currentTreePath = url . match ( / \/ t r e e _ p a t h \/ ( [ \s \S ] .* ?) ( & | % 2 6 ) / ) [ 1 ] ;
99
101
this . targetElementId = options && options . targetElementId ?
100
102
options . targetElementId
101
103
: url . match ( / \/ t a r g e t _ e l e m e n t _ i d \/ ( [ \s \S ] .* ?) \/ / ) [ 1 ] ;
You can’t perform that action at this time.
0 commit comments