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
1465c807
Commit
1465c807
authored
Aug 23, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #545 from MITx/feature/rocky/discussion
some tiny bug fixes (delete & update follow)
parents
ae632f1b
e6aa422b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lms/static/coffee/src/discussion/content.coffee
+5
-1
lms/static/coffee/src/discussion/utils.coffee
+0
-2
No files found.
lms/static/coffee/src/discussion/content.coffee
View file @
1465c807
...
...
@@ -191,6 +191,8 @@ if Backbone?
comment
=
@
model
.
addComment
response
.
content
commentView
=
new
CommentView
el
:
$comment
[
0
],
model
:
comment
comment
.
updateInfo
response
.
annotated_content_info
if
autowatch
@
model
.
get
(
'thread'
).
set
(
'subscribed'
,
true
)
@
cancelReply
()
cancelReply
:
->
...
...
@@ -330,9 +332,11 @@ if Backbone?
DiscussionUtil
.
safeAjax
$elem
:
$elem
url
:
url
type
:
"POST"
success
:
(
response
,
textStatus
)
=>
@
$el
.
remove
()
@
model
.
get
(
'thread'
).
removeComment
(
@
model
)
if
@
model
.
get
(
'type'
)
==
'comment'
@
model
.
get
(
'thread'
).
removeComment
(
@
model
)
events
:
"click .discussion-follow-thread"
:
"toggleFollow"
...
...
lms/static/coffee/src/discussion/utils.coffee
View file @
1465c807
...
...
@@ -72,12 +72,10 @@ class @DiscussionUtil
params
[
"beforeSend"
]
=
->
$elem
.
attr
(
"disabled"
,
"disabled"
)
if
params
[
"$loading"
]
console
.
log
"loading"
params
[
"$loading"
].
loading
()
$
.
ajax
(
params
).
always
->
$elem
.
removeAttr
(
"disabled"
)
if
params
[
"$loading"
]
console
.
log
"loaded"
params
[
"$loading"
].
loaded
()
@
get
:
(
$elem
,
url
,
data
,
success
)
->
...
...
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