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
2881bac3
Commit
2881bac3
authored
Mar 03, 2017
by
Awais Jibran
Committed by
GitHub
Mar 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14623 from edx/aj/fix-edit-discussions
Fix discussion Edit post.
parents
dca22ff2
0f1ec82e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
common/static/common/js/discussion/views/discussion_inline_view.js
+4
-4
common/static/common/js/discussion/views/discussion_thread_view.js
+2
-2
No files found.
common/static/common/js/discussion/views/discussion_inline_view.js
View file @
2881bac3
...
...
@@ -81,7 +81,7 @@
Content
.
loadContentInfos
(
response
.
annotated_content_info
);
DiscussionUtil
.
loadRoles
(
response
.
roles
);
this
.
course
_s
ettings
=
new
DiscussionCourseSettings
(
response
.
course_settings
);
this
.
course
S
ettings
=
new
DiscussionCourseSettings
(
response
.
course_settings
);
this
.
discussion
=
new
Discussion
(
undefined
,
{
pages
:
response
.
num_pages
});
this
.
discussion
.
reset
(
response
.
discussion_data
,
{
...
...
@@ -104,7 +104,7 @@
this
.
threadListView
=
new
DiscussionThreadListView
({
el
:
this
.
$
(
'.inline-threads'
),
collection
:
self
.
discussion
,
courseSettings
:
self
.
course
_s
ettings
courseSettings
:
self
.
course
S
ettings
});
this
.
threadListView
.
render
();
...
...
@@ -118,7 +118,7 @@
this
.
newPostView
=
new
NewPostView
({
el
:
this
.
newPostForm
,
collection
:
this
.
discussion
,
course_settings
:
this
.
course
_s
ettings
,
course_settings
:
this
.
course
S
ettings
,
topicId
:
discussionId
,
is_commentable_cohorted
:
response
.
is_commentable_cohorted
});
...
...
@@ -146,7 +146,7 @@
el
:
this
.
$
(
'.forum-content'
),
model
:
thread
,
mode
:
'inline'
,
course
_settings
:
this
.
course_s
ettings
course
Settings
:
this
.
courseS
ettings
});
this
.
threadView
.
render
();
this
.
listenTo
(
this
.
threadView
.
showView
,
'thread:_delete'
,
this
.
navigateToAllPosts
);
...
...
common/static/common/js/discussion/views/discussion_thread_view.js
View file @
2881bac3
...
...
@@ -109,7 +109,7 @@
mode
:
this
.
mode
,
model
:
this
.
model
,
el
:
this
.
el
,
course
_settings
:
this
.
options
.
course_s
ettings
,
course
Settings
:
this
.
options
.
courseS
ettings
,
topicId
:
this
.
topicId
});
return
this
.
render
();
...
...
@@ -396,7 +396,7 @@
model
:
this
.
model
,
mode
:
this
.
mode
,
context
:
this
.
context
,
course_settings
:
this
.
options
.
course
_s
ettings
course_settings
:
this
.
options
.
course
S
ettings
});
this
.
editView
.
bind
(
'thread:updated thread:cancel_edit'
,
this
.
closeEditView
);
return
this
.
editView
.
bind
(
'comment:endorse'
,
this
.
endorseThread
);
...
...
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