aboutsummaryrefslogtreecommitdiffstats
path: root/docs/docs.js
diff options
context:
space:
mode:
authorIgor Minar2010-11-17 11:33:30 -0800
committerIgor Minar2010-11-18 02:34:53 -0800
commit51a22cf435b39f933e5a20aabb59d6c78353c9d3 (patch)
tree65af20eb6cbafd5ab95ffc6b886f4c3cda6c3edd /docs/docs.js
parentc2c60ab49af22381e77641d61151563785e97a97 (diff)
downloadangular.js-51a22cf435b39f933e5a20aabb59d6c78353c9d3.tar.bz2
group utility methods/objects while sorting stuff for the side bar
Diffstat (limited to 'docs/docs.js')
-rw-r--r--docs/docs.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/docs.js b/docs/docs.js
index 99b2aa2f..c8cc8069 100644
--- a/docs/docs.js
+++ b/docs/docs.js
@@ -22,9 +22,12 @@ function DocsController($location, $browser, $window) {
};
this.getClass = function(page) {
- var depth = page.name.split(/\./).length - 1;
- return 'level-' + depth +
- (page.name == this.getTitle() ? ' selected' : '');
+ var depth = page.name.split(/\./).length - 1,
+ cssClass = 'level-' + depth + (page.name == this.getTitle() ? ' selected' : '');
+
+ if (depth == 1 && page.type !== 'overview') cssClass += ' level-angular';
+
+ return cssClass;
};
this.afterPartialLoaded = function() {