#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

@ -13,26 +13,14 @@ define(['jquery',
items:null,
selectedItem:null
},
initialize: function (options) {
//this.scrParam = null;
//this.menuParam = null;
//this.stageParam = null;
//this.numParam = null;
//this.baseUrlRoot = '';
},
loadData: function(options) {
this.urlRoot = _.escape(encodeURIComponent(options.name)) + '.lesson'
// if (options.stage != null) {
// this.urlRoot += '&stage=' + options.stage;
// }
// if (options.num != null) {
// this.urlRoot += '&Num=' + options.num;
// }
//TODO - is below needed anymore?
// this.set('menuParam', options.menu);
// this.set('scrParam', options.scr);
// this.set('stageParam', options.stage);
// this.set('numParam', options.num);
var self = this;
this.fetch().done(function(data) {
self.setContent(data);
@ -44,6 +32,7 @@ define(['jquery',
loadHelps = true;
}
this.set('content',content);
this.set('lessonUrl',document.URL);
this.trigger('content:loaded',this,loadHelps);
},