mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Cannot toggle an empty category
This commit is contained in:
parent
8178ab3415
commit
1bdbd6a5b0
@ -16,7 +16,6 @@
|
|||||||
RED.palette = function() {
|
RED.palette = function() {
|
||||||
|
|
||||||
function addNodeType(nt,def) {
|
function addNodeType(nt,def) {
|
||||||
console.log(nt,def.category);
|
|
||||||
if (def.category != 'config') {
|
if (def.category != 'config') {
|
||||||
var d = document.createElement("div");
|
var d = document.createElement("div");
|
||||||
d.id = "pn_"+nt;
|
d.id = "pn_"+nt;
|
||||||
@ -76,7 +75,7 @@ RED.palette = function() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
$(".palette-header").click(function(e) {
|
$(".palette-header").click(function(e) {
|
||||||
(this).next().slideToggle();
|
$(this).next().slideToggle();
|
||||||
$(this).children("i").toggleClass("expanded");
|
$(this).children("i").toggleClass("expanded");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user