in api-docs/0.6/lib/index.js [183:212]
function configureFocusFilter() {
scheduler.add("init", function() {
focusFilterState = null;
if ($("#focusfilter").length == 0) {
$("#filter").append("<div id='focusfilter'>focused on <span class='focuscoll'></span> <a class='focusremove'><img class='icon' src='lib/remove.png'/></a></div>");
$("#focusfilter > .focusremove").click(function(event) {
scheduler.clear("filter");
scheduler.add("focus", function() {
$("#tpl > ol.templates").replaceWith(topLevelTemplates.clone());
$("#tpl > ol.packages").replaceWith(topLevelPackages.clone());
domCache.update();
$("#focusfilter").hide();
$("#kindfilter").show();
resizeFilterBlock();
focusFilterState = null;
configureEntityList();
});
});
$("#focusfilter").hide();
resizeFilterBlock();
}
});
scheduler.addForAll("init", domCache.liPacks, function(pack) {
$(pack).prepend("<a class='packfocus'>focus</a>");
$("> a.packfocus", pack).click(function(event) {
focusFilter($(this).parent());
return false;
});
});
}