mirror of https://github.com/node-red/node-red.git
Merge pull request #2313 from kazuhitoyokoi/master-fixvisualeditor
Fix menu in visual JSON editorpull/2371/head
commit
053e3ba923
|
@ -141,6 +141,7 @@
|
||||||
})
|
})
|
||||||
}});
|
}});
|
||||||
options.push({id:"red-ui-editor-type-json-menu-collapse-children",icon:"fa fa-angle-double-up", label:RED._('jsonEditor.collapseItems'),onselect:function(){
|
options.push({id:"red-ui-editor-type-json-menu-collapse-children",icon:"fa fa-angle-double-up", label:RED._('jsonEditor.collapseItems'),onselect:function(){
|
||||||
|
item.treeList.collapse();
|
||||||
item.children.forEach(function(child) {
|
item.children.forEach(function(child) {
|
||||||
child.treeList.collapse();
|
child.treeList.collapse();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue