Fixes for issue #32 - lessons/menu not loading

This commit is contained in:
Jason White 2015-08-22 05:59:48 -04:00
parent 16c262f3bc
commit 9b4c97e468
3 changed files with 6 additions and 8 deletions

View File

@ -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});
},

View File

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

View File

@ -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'}));
}
}