Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
0c59aa78
Commit
0c59aa78
authored
Sep 03, 2012
by
Arjun Singh
Committed by
Matthew Mongeau
Sep 10, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
allowing for 0 top level topics
parent
6105f892
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 additions
and
2 deletions
+1
-2
lms/djangoapps/django_comment_client/utils.py
+1
-1
lms/static/coffee/src/discussion/views/new_post_view.coffee
+0
-1
No files found.
lms/djangoapps/django_comment_client/utils.py
View file @
0c59aa78
...
@@ -123,7 +123,7 @@ def initialize_discussion_info(course):
...
@@ -123,7 +123,7 @@ def initialize_discussion_info(course):
node
[
level
][
"entries"
][
entry
[
"title"
]]
=
{
"id"
:
entry
[
"id"
],
node
[
level
][
"entries"
][
entry
[
"title"
]]
=
{
"id"
:
entry
[
"id"
],
"sort_key"
:
entry
[
"sort_key"
]}
"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"
],
category_map
[
'entries'
][
topic
]
=
{
"id"
:
entry
[
"id"
],
"sort_key"
:
entry
.
get
(
"sort_key"
,
topic
)}
"sort_key"
:
entry
.
get
(
"sort_key"
,
topic
)}
...
...
lms/static/coffee/src/discussion/views/new_post_view.coffee
View file @
0c59aa78
...
@@ -45,7 +45,6 @@ class @NewPostView extends Backbone.View
...
@@ -45,7 +45,6 @@ class @NewPostView extends Backbone.View
# change and 2) can't set in initialize because the button is hidden
# change and 2) can't set in initialize because the button is hidden
@
maxNameWidth
=
@
dropdownButton
.
width
()
*
0.9
@
maxNameWidth
=
@
dropdownButton
.
width
()
*
0.9
# Need a fat arrow because hideTopicDropdown is passed as a callback to bind
# Need a fat arrow because hideTopicDropdown is passed as a callback to bind
hideTopicDropdown
:
()
=>
hideTopicDropdown
:
()
=>
@
menuOpen
=
false
@
menuOpen
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment