Revert "tour: Enable tour navigation in IE10, IE11, and Edge"
This is totally broken on non-IE browsers.
This reverts commit 83cfec22ac98390b1d89bc8c58f755bd45a989d4.
Change-Id: I4051c11aa80f6adfd6ec60255d0b04de93b5fb9a
Reviewed-on: https://go-review.googlesource.com/14810
Reviewed-by: Andrew Gerrand <adg@golang.org>
diff --git a/static/js/controllers.js b/static/js/controllers.js
index 35c5cda..d4151a3 100755
--- a/static/js/controllers.js
+++ b/static/js/controllers.js
@@ -33,12 +33,10 @@
$scope.curFile = 0;
$scope.job = null;
- $scope.nextPage = function(event) {
- event.preventDefault();
+ $scope.nextPage = function() {
$scope.gotoPage($scope.curPage + 1);
};
- $scope.prevPage = function(event) {
- event.preventDefault();
+ $scope.prevPage = function() {
$scope.gotoPage($scope.curPage - 1);
};
$scope.gotoPage = function(page) {
diff --git a/static/partials/editor.html b/static/partials/editor.html
index f9b1b87..529dd87 100644
--- a/static/partials/editor.html
+++ b/static/partials/editor.html
@@ -6,9 +6,9 @@
<div class="slide-content" ng-bind-html-unsafe="toc.lessons[lessonId].Pages[curPage-1].Content"></div>
<div class="bar module-bar">
- <a href="#" class="prev-page" ng-click="prevPage($event)"><</a>
+ <a href="" class="prev-page" ng-click="prevPage()"><</a>
<span>{{curPage}}/{{toc.lessons[lessonId].Pages.length}}</span>
- <a href="#" class="next-page" ng-click="nextPage($event)">></a>
+ <a href="" class="next-page" ng-click="nextPage()">></a>
</div>
</div>
</div>