diff options
Diffstat (limited to 'docs/src/templates/doc_widgets.js')
| -rw-r--r-- | docs/src/templates/doc_widgets.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/src/templates/doc_widgets.js b/docs/src/templates/doc_widgets.js index 50de4ed3..bf49697d 100644 --- a/docs/src/templates/doc_widgets.js +++ b/docs/src/templates/doc_widgets.js @@ -291,14 +291,14 @@ angular.module('ngdocs.directives', [], function($compileProvider) { } else { prevStep = 'step_' + pad(step - 1); nextStep = 'step_' + pad(step + 1); - codeDiff = 'step-' + step + '...step-' + step; + codeDiff = 'step-' + (step-1) + '...step-' + step; } content = angular.element( - '<li><a href="#!/tutorial/' + prevStep + '">Previous</a></li>' + + '<li><a href="tutorial/' + prevStep + '">Previous</a></li>' + '<li><a href="http://angular.github.com/angular-phonecat/step-' + step + '/app">Live Demo</a></li>' + '<li><a href="https://github.com/angular/angular-phonecat/compare/' + codeDiff + '">Code Diff</a></li>' + - '<li><a href="#!/tutorial/' + nextStep + '">Next</a></li>' + '<li><a href="tutorial/' + nextStep + '">Next</a></li>' ); element.attr('id', 'tutorial-nav'); |
