1
0
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:
Nick O'Leary 2014-01-19 19:23:25 +00:00
parent 8178ab3415
commit 1bdbd6a5b0

View File

@ -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");
}); });