mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Insert divider in menu by calling RED.menu.addItem('id', null);
This commit is contained in:
parent
f75dd2209d
commit
5056203023
@ -244,7 +244,7 @@ RED.menu = (function() {
|
||||
|
||||
function addItem(id,opt) {
|
||||
var item = createMenuItem(opt);
|
||||
if (opt.group) {
|
||||
if (opt !== null && opt.group) {
|
||||
var groupItems = $("#"+id+"-submenu").children(".red-ui-menu-group-"+opt.group);
|
||||
if (groupItems.length === 0) {
|
||||
item.appendTo("#"+id+"-submenu");
|
||||
|
Loading…
Reference in New Issue
Block a user