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

Ensure all palette categories are opened properly

Closes #1893
This commit is contained in:
Nick O'Leary 2018-09-24 21:15:39 +01:00
parent 08fccc4e77
commit ce85c8d986
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -320,9 +320,9 @@ RED.palette = (function() {
} }
setLabel(nt,$(d),label,nodeInfo); setLabel(nt,$(d),label,nodeInfo);
var categoryNode = $("#palette-container-"+category); var categoryNode = $("#palette-container-"+rootCategory);
if (categoryNode.find(".palette_node").length === 1) { if (categoryNode.find(".palette_node").length === 1) {
categoryContainers[category].open(); categoryContainers[rootCategory].open();
} }
} }
@ -459,7 +459,6 @@ RED.palette = (function() {
} }
}); });
RED.events.on('registry:node-set-disabled', function(nodeSet) { RED.events.on('registry:node-set-disabled', function(nodeSet) {
console.log(nodeSet);
for (var j=0;j<nodeSet.types.length;j++) { for (var j=0;j<nodeSet.types.length;j++) {
hideNodeType(nodeSet.types[j]); hideNodeType(nodeSet.types[j]);
var def = RED.nodes.getType(nodeSet.types[j]); var def = RED.nodes.getType(nodeSet.types[j]);