in hive/scaladocs/lib/index.js [216:232]
ns.showPackage = function (ol, state) {
var selected = $('li.pack > .tplshow', ol).text();
hiddenPackages[selected] = false;
$('ol.templates', ol).show();
$.each(subPackages(selected), function (index, element) {
$(element).show();
// When the filter is in "packs" state,
// we don't want to show the `.templates`
var key = $('li.pack > .tplshow', element).text();
if (hiddenPackages[key] || state == 'packs') {
$('ol.templates', element).hide();
}
});
}