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
1 changed files with 1 additions and 2 deletions

View File

@ -16,7 +16,6 @@
RED.palette = function() {
function addNodeType(nt,def) {
console.log(nt,def.category);
if (def.category != 'config') {
var d = document.createElement("div");
d.id = "pn_"+nt;
@ -76,7 +75,7 @@ RED.palette = function() {
}
$(".palette-header").click(function(e) {
(this).next().slideToggle();
$(this).next().slideToggle();
$(this).children("i").toggleClass("expanded");
});