diff --git a/cms/static/js/views/textbook.js b/cms/static/js/views/textbook.js index b9fabae6f2..9d83df0de2 100644 --- a/cms/static/js/views/textbook.js +++ b/cms/static/js/views/textbook.js @@ -12,7 +12,10 @@ CMS.Views.ShowTextbook = Backbone.View.extend({ "click .hide-chapters": "hideChapters" }, render: function() { - this.$el.html(this.template(this.model.attributes)); + var attrs = $.extend({}, this.model.attributes); + attrs.bookindex = this.model.collection.indexOf(this.model); + attrs.course = window.section.attributes; + this.$el.html(this.template(attrs)); return this; }, editTextbook: function(e) { diff --git a/cms/templates/js/show-textbook.underscore b/cms/templates/js/show-textbook.underscore index 4954793129..1767340723 100644 --- a/cms/templates/js/show-textbook.underscore +++ b/cms/templates/js/show-textbook.underscore @@ -34,7 +34,7 @@