From 3776e08db08232d38b6d5e561092ef78795ec356 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Tue, 10 May 2011 17:01:01 -0700 Subject: new docs skin - WIP --- docs/src/templates/docs.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'docs/src/templates/docs.js') 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; -- cgit v1.2.3