Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2018-11-27 14:18:28 +0300
committerAchilleas Pipinellis <axil@gitlab.com>2018-11-27 14:18:28 +0300
commit21b1ae6ecd6d68b3390c0a1e8c0e2e9ef1782383 (patch)
tree0fc908122aebd94d5420b1afb9a72f3bb6e16c3e /content
parent9f241f285f84d7b1a780d10137d72c62c0532236 (diff)
Change >0 to >=1 when rendering the ToC headings
Diffstat (limited to 'content')
-rw-r--r--content/assets/javascripts/docs.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/content/assets/javascripts/docs.js b/content/assets/javascripts/docs.js
index 2b79a2a1d..a5e97a40f 100644
--- a/content/assets/javascripts/docs.js
+++ b/content/assets/javascripts/docs.js
@@ -61,7 +61,7 @@ function toggleNavigation() {
if (sidebar) {
// if there are items
- if (tocList.children.length > 0) {
+ if (tocList.children.length >= 1) {
var menu = tocList;
// grab the h1's li anchor text