From dfa83109fb35daf7904078166d149a2ba70ffd49 Mon Sep 17 00:00:00 2001 From: Robert Messerle Date: Mon, 19 Oct 2015 05:58:33 -0700 Subject: [PATCH] hides api sections when there are no items to display --- public/docs/js/latest/api/index.jade | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/docs/js/latest/api/index.jade b/public/docs/js/latest/api/index.jade index 464c05b423..2e2adec3e5 100644 --- a/public/docs/js/latest/api/index.jade +++ b/public/docs/js/latest/api/index.jade @@ -9,7 +9,7 @@ div(ng-cloak).banner dd.var(ng-class='{ active: apiType === "var" }' ng-click='setType("var")') Variable input.api-filter(placeholder='Filter', ng-model='apiFilter') article(class="l-content-small grid-fluid docs-content") - div(ng-repeat='section in apiSections' ng-cloak) + div(ng-repeat='section in apiSections' ng-if="(apiList[section.name] | filter: { title: apiFilter, docType: apiType }).length" ng-clock) h3 {{ section.title }} ul.api-list li.api-item(ng-repeat='item in apiList[section.name] | filter: { title: apiFilter, docType: apiType }')