Merge branch 'feature/tomg/new-discussions' of github.com:MITx/mitx into feature/tomg/new-discussions
This commit is contained in:
@@ -120,7 +120,7 @@ def initialize_discussion_info(course):
|
||||
node[level]["entries"][entry["title"]] = {"id": entry["id"],
|
||||
"sort_key": entry["sort_key"]}
|
||||
|
||||
for topic, entry in course.metadata['discussion_topics'].items():
|
||||
for topic, entry in course.metadata.get('discussion_topics', {}).items():
|
||||
category_map['entries'][topic] = {"id": entry["id"],
|
||||
"sort_key": entry.get("sort_key", topic)}
|
||||
|
||||
|
||||
@@ -45,7 +45,6 @@ class @NewPostView extends Backbone.View
|
||||
# change and 2) can't set in initialize because the button is hidden
|
||||
@maxNameWidth = @dropdownButton.width() * 0.9
|
||||
|
||||
|
||||
# Need a fat arrow because hideTopicDropdown is passed as a callback to bind
|
||||
hideTopicDropdown: () =>
|
||||
@menuOpen = false
|
||||
|
||||
Reference in New Issue
Block a user