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', define(['jquery',
'underscore', 'underscore',
'backbone', 'backbone',
'goatApp/model/LessonCookieCollection'], 'goatApp/model/CookieCollection'],
function($, function($,
_, _,
Backbone, Backbone,
LessonCookieCollection) { CookieCollection) {
return Backbone.View.extend({ return Backbone.View.extend({
el:'#cookies-view', el:'#cookies-view',
initialize: function() { initialize: function() {
this.collection = new LessonCookieCollection(); this.collection = new CookieCollection();
this.listenTo(this.collection,'reset',this.render) this.listenTo(this.collection,'reset',this.render)
this.collection.fetch({reset:true}); this.collection.fetch({reset:true});
}, },

View File

@ -2,14 +2,12 @@
define(['jquery', define(['jquery',
'underscore', 'underscore',
'backbone', 'backbone',
'libs/jquery.form', 'libs/jquery.form'],
'goatApp/model/LessonContent'],
function( function(
$, $,
_, _,
Backbone, Backbone,
JQueryForm, JQueryForm) {
LessonContent) {
return Backbone.View.extend({ return Backbone.View.extend({
el:'#lesson-content-wrapper', //TODO << get this fixed up in DOM el:'#lesson-content-wrapper', //TODO << get this fixed up in DOM
initialize: function(options) { initialize: function(options) {

View File

@ -65,7 +65,7 @@ define(['jquery',
var stageSpan = $('<span>'); var stageSpan = $('<span>');
stageSpan.append(stageLink); stageSpan.append(stageLink);
categoryLessonList.append(stageSpan); categoryLessonList.append(stageSpan);
if (stages[j].complete) { if (stages[k].complete) {
stageSpan.append($('<span>',{class:'glyphicon glyphicon-check lesson-complete'})); stageSpan.append($('<span>',{class:'glyphicon glyphicon-check lesson-complete'}));
} }
} }