#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

@ -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) {