Show Categories that use custom code to load (variables, procedures) (#483)

This commit is contained in:
TheBrokenRail 2017-03-01 09:25:11 -05:00 committed by Ray Schamp
parent 343b5bfe8e
commit 739c5deb63

View file

@ -38,7 +38,11 @@ var filterToolbox = function (toolbox, opcodes) {
) {
if (category.nodeName.toLowerCase() !== 'category') continue;
var filteredCategory = filterToolboxNode(category, opcodes);
if (filteredCategory.hasChildNodes()) filteredToolbox.appendChild(filteredCategory);
if (filteredCategory.hasChildNodes() ||
filteredCategory.hasAttribute('custom')
) {
filteredToolbox.appendChild(filteredCategory);
}
}
} else {
filteredToolbox = filterToolboxNode(toolbox, opcodes);