Commit 99f55266 by cahrens

Do not need to pass blacklist keys to client.

parent 84f21379
...@@ -1200,7 +1200,6 @@ def course_config_advanced_page(request, org, course, name): ...@@ -1200,7 +1200,6 @@ def course_config_advanced_page(request, org, course, name):
return render_to_response('settings_advanced.html', { return render_to_response('settings_advanced.html', {
'context_course': course_module, 'context_course': course_module,
'course_location' : location, 'course_location' : location,
'advanced_blacklist' : json.dumps(CourseMetadata.FILTERED_LIST),
'advanced_dict' : json.dumps(CourseMetadata.fetch(location)), 'advanced_dict' : json.dumps(CourseMetadata.fetch(location)),
}) })
......
...@@ -7,7 +7,6 @@ CMS.Models.Settings.Advanced = Backbone.Model.extend({ ...@@ -7,7 +7,6 @@ CMS.Models.Settings.Advanced = Backbone.Model.extend({
}, },
// which keys to send as the deleted keys on next save // which keys to send as the deleted keys on next save
deleteKeys : [], deleteKeys : [],
blacklistKeys : [], // an array which the controller should populate directly for now [static not instance based]
validate: function (attrs) { validate: function (attrs) {
// Keys can no longer be edited. We are currently not validating values. // Keys can no longer be edited. We are currently not validating values.
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
if (typeof window.templateLoader == 'function') return; if (typeof window.templateLoader == 'function') return;
var templateLoader = { var templateLoader = {
templateVersion: "0.0.15", templateVersion: "0.0.16",
templates: {}, templates: {},
loadRemoteTemplate: function(templateName, filename, callback) { loadRemoteTemplate: function(templateName, filename, callback) {
if (!this.templates[templateName]) { if (!this.templates[templateName]) {
......
...@@ -21,7 +21,6 @@ $(document).ready(function () { ...@@ -21,7 +21,6 @@ $(document).ready(function () {
// proactively populate advanced b/c it has the filtered list and doesn't really follow the model pattern // proactively populate advanced b/c it has the filtered list and doesn't really follow the model pattern
var advancedModel = new CMS.Models.Settings.Advanced(${advanced_dict | n}, {parse: true}); var advancedModel = new CMS.Models.Settings.Advanced(${advanced_dict | n}, {parse: true});
advancedModel.blacklistKeys = ${advanced_blacklist | n};
advancedModel.url = "${reverse('course_advanced_settings_updates', kwargs=dict(org=context_course.location.org, course=context_course.location.course, name=context_course.location.name))}"; advancedModel.url = "${reverse('course_advanced_settings_updates', kwargs=dict(org=context_course.location.org, course=context_course.location.course, name=context_course.location.name))}";
var editor = new CMS.Views.Settings.Advanced({ var editor = new CMS.Views.Settings.Advanced({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment