#296 updates href according to to page nav

This commit is contained in:
Jason White
2016-12-22 15:08:33 -05:00
parent 025ac49e19
commit 35055eeb3c
3 changed files with 9 additions and 23 deletions

View File

@ -27,7 +27,6 @@ define(['jquery',
'test/:param':'testRoute'
},
lessonController: new LessonController({
lessonContentView: lessonContentView
}),
@ -84,10 +83,6 @@ define(['jquery',
this.lessonController.loadWelcome();
});
goatRouter.on('route:welcomeRoute', function() {
this.lessonController.loadWelcome();
});
goatRouter.on('route:testRoute', function(param) {
this.lessonController.testHandler(param);
});

View File

@ -168,7 +168,8 @@ define(['jquery',
incrementPageView: function() {
if (this.currentPage < this.numPages -1) {
this.currentPage++;
this.showCurContentPage(true);
window.location.href = this.model.get('lessonUrl') + '/' + this.currentPage;
//this.showCurContentPage(true);
}
if (this.currentPage > 0) {
@ -184,7 +185,8 @@ define(['jquery',
decrementPageView: function() {
if (this.currentPage > 0) {
this.currentPage--;
this.showCurContentPage(false);
window.location.href = this.model.get('lessonUrl') + '/' + this.currentPage;
//this.showCurContentPage(false);
}
if (this.currentPage < this.numPages -1) {