Use window.course instead of window.section

This commit is contained in:
David Baumgold
2013-12-05 13:17:39 -05:00
parent 0d3490374e
commit 06f400191f
4 changed files with 8 additions and 15 deletions

View File

@@ -53,7 +53,7 @@ define(["backbone", "underscore", "underscore.string", "jquery", "gettext", "js/
});
var msg = new FileUploadModel({
title: _.template(gettext("Upload a new PDF to “<%= name %>”"),
{name: section.escape('name')}),
{name: course.escape('name')}),
message: "Files must be in PDF format.",
mimeTypes: ['application/pdf']
});

View File

@@ -16,7 +16,7 @@ define(["backbone", "underscore", "gettext", "js/views/feedback_notification", "
render: function() {
var attrs = $.extend({}, this.model.attributes);
attrs.bookindex = this.model.collection.indexOf(this.model);
attrs.course = window.section.attributes;
attrs.course = window.course.attributes;
this.$el.html(this.template(attrs));
return this;
},