diff --git a/_includes/treebuilder.html b/_includes/treebuilder.html
index d7bb4c2cf3..e98e5c543b 100644
--- a/_includes/treebuilder.html
+++ b/_includes/treebuilder.html
@@ -1,11 +1,12 @@
{% for section in site.data.toc.horizontalnav %}
{% assign topicFound="false" %}
+ {% assign activeCSS = "" %}
{% assign tree = site.data.toc[section.node] %}
{% capture thisSection %}{% include tree.html %}{% endcapture %}
{% if section.path == page.url or thisSection contains "active currentPage" %}
- {{ section.node }}
- {{ thisSection }}
- {% break %}
+ {% capture leftnav %}{{ thisSection }}{% endcapture %}
+ {% capture activeCSS %} class="active"{% endcapture %}
{% endif %}
+
{{ section.title }}
{% endfor %}
diff --git a/_layouts/docs.html b/_layouts/docs.html
index 4942276041..ae3e8c1009 100644
--- a/_layouts/docs.html
+++ b/_layouts/docs.html
@@ -193,8 +193,8 @@ ng\:form {
-
{% for section in site.data.toc.horizontalnav %}
- - {{ section.title }}
{% endfor %}
+
+ {% include treebuilder.html %}
@@ -205,7 +205,7 @@ ng\:form {
{% if page.tree == false %}
Back to the index
{% else %}
- {% include treebuilder.html %}
+ {{ leftnav }}
{% endif %}
diff --git a/js/menu.js b/js/menu.js
index bb0c1ee351..337bc2f105 100644
--- a/js/menu.js
+++ b/js/menu.js
@@ -1,6 +1,3 @@
----
-layout: null
----
var metadata;
var autoCompleteShowing = false;
var displayingAutcompleteResults = new Array();