mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Strip node-red-contrib/node- prefix from Example menu labels
This commit is contained in:
parent
55e66ebcac
commit
4b702815cf
@ -38,7 +38,8 @@ RED.library = (function() {
|
||||
li.className = "dropdown-submenu pull-left";
|
||||
a = document.createElement("a");
|
||||
a.href="#";
|
||||
a.innerHTML = i;
|
||||
var label = i.replace(/^node-red-contrib-/,"").replace(/^node-red-node-/,"");
|
||||
a.innerHTML = label;
|
||||
li.appendChild(a);
|
||||
li.appendChild(buildMenu(data.d[i],root+(root!==""?"/":"")+i));
|
||||
ul.appendChild(li);
|
||||
|
Loading…
Reference in New Issue
Block a user