diff options
Diffstat (limited to 'docs/docs.js')
| -rw-r--r-- | docs/docs.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/docs/docs.js b/docs/docs.js index 96fba9cc..99b2aa2f 100644 --- a/docs/docs.js +++ b/docs/docs.js @@ -1,7 +1,7 @@ SyntaxHighlighter['defaults'].toolbar = false; -DocsController.$inject = ['$location', '$browser']; -function DocsController($location, $browser) { +DocsController.$inject = ['$location', '$browser', '$window']; +function DocsController($location, $browser, $window) { this.pages = NG_PAGES; window.$root = this.$root; @@ -26,6 +26,11 @@ function DocsController($location, $browser) { return 'level-' + depth + (page.name == this.getTitle() ? ' selected' : ''); }; + + this.afterPartialLoaded = function() { + $window.scroll(0,0); + SyntaxHighlighter.highlight(); + }; } |
