aboutsummaryrefslogtreecommitdiffstats
path: root/docs/src/templates/docs.js
diff options
context:
space:
mode:
Diffstat (limited to 'docs/src/templates/docs.js')
-rw-r--r--docs/src/templates/docs.js8
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;