diff options
| author | Igor Minar | 2011-05-10 17:01:01 -0700 |
|---|---|---|
| committer | Igor Minar | 2011-06-06 22:51:58 -0700 |
| commit | 3776e08db08232d38b6d5e561092ef78795ec356 (patch) | |
| tree | f278771072685fc519df84c51fdeb907509a9539 /docs/src/templates/docs.js | |
| parent | c1debfb81d33090c9e721349dd4a2f57a4acf464 (diff) | |
| download | angular.js-3776e08db08232d38b6d5e561092ef78795ec356.tar.bz2 | |
new docs skin - WIP
Diffstat (limited to 'docs/src/templates/docs.js')
| -rw-r--r-- | docs/src/templates/docs.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/src/templates/docs.js b/docs/src/templates/docs.js index 9486f91e..65f8b11a 100644 --- a/docs/src/templates/docs.js +++ b/docs/src/templates/docs.js @@ -38,11 +38,16 @@ function DocsController($location, $browser, $window) { }; this.selectedSection = function(section) { - return section == self.sectionId ? 'selected' : null; + return section == self.sectionId ? 'current' : ''; }; + this.selectedPartial = function(partial) { + return partial.id == self.partialId ? 'current' : ''; + } + this.afterPartialLoaded = function() { SyntaxHighlighter.highlight(); + window.scrollTo(0,0); }; this.getFeedbackUrl = function() { @@ -59,3 +64,4 @@ angular.widget('code', function(element){ }); SyntaxHighlighter['defaults'].toolbar = false; +SyntaxHighlighter['defaults'].gutter = false; |
