Fixes for issue #32 - lessons/menu not loading
This commit is contained in:
parent
16c262f3bc
commit
9b4c97e468
@ -1,16 +1,16 @@
|
||||
define(['jquery',
|
||||
'underscore',
|
||||
'backbone',
|
||||
'goatApp/model/LessonCookieCollection'],
|
||||
'goatApp/model/CookieCollection'],
|
||||
function($,
|
||||
_,
|
||||
Backbone,
|
||||
LessonCookieCollection) {
|
||||
CookieCollection) {
|
||||
return Backbone.View.extend({
|
||||
el:'#cookies-view',
|
||||
|
||||
initialize: function() {
|
||||
this.collection = new LessonCookieCollection();
|
||||
this.collection = new CookieCollection();
|
||||
this.listenTo(this.collection,'reset',this.render)
|
||||
this.collection.fetch({reset:true});
|
||||
},
|
||||
|
@ -2,14 +2,12 @@
|
||||
define(['jquery',
|
||||
'underscore',
|
||||
'backbone',
|
||||
'libs/jquery.form',
|
||||
'goatApp/model/LessonContent'],
|
||||
'libs/jquery.form'],
|
||||
function(
|
||||
$,
|
||||
_,
|
||||
Backbone,
|
||||
JQueryForm,
|
||||
LessonContent) {
|
||||
JQueryForm) {
|
||||
return Backbone.View.extend({
|
||||
el:'#lesson-content-wrapper', //TODO << get this fixed up in DOM
|
||||
initialize: function(options) {
|
||||
|
@ -65,7 +65,7 @@ define(['jquery',
|
||||
var stageSpan = $('<span>');
|
||||
stageSpan.append(stageLink);
|
||||
categoryLessonList.append(stageSpan);
|
||||
if (stages[j].complete) {
|
||||
if (stages[k].complete) {
|
||||
stageSpan.append($('<span>',{class:'glyphicon glyphicon-check lesson-complete'}));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user