1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Replace - & _ from example node name labels with space

and align lines (ocd)
This commit is contained in:
Dave Conway-Jones 2016-03-05 17:07:39 +00:00
parent 63ba05a193
commit 0e9ea0aff1

View File

@ -38,7 +38,7 @@ RED.library = (function() {
li.className = "dropdown-submenu pull-left"; li.className = "dropdown-submenu pull-left";
a = document.createElement("a"); a = document.createElement("a");
a.href="#"; a.href="#";
var label = i.replace(/^node-red-contrib-/,"").replace(/^node-red-node-/,""); var label = i.replace(/^node-red-contrib-/,"").replace(/^node-red-node-/,"").replace(/-/," ").replace(/_/," "));
a.innerHTML = label; a.innerHTML = label;
li.appendChild(a); li.appendChild(a);
li.appendChild(buildMenu(data.d[i],root+(root!==""?"/":"")+i)); li.appendChild(buildMenu(data.d[i],root+(root!==""?"/":"")+i));