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
16ca13f2
Commit
16ca13f2
authored
Aug 23, 2012
by
Rocky Duan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/rocky/discussion' into feature/rocky/loading
parents
abe12ddd
233f817f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
2 additions
and
13 deletions
+2
-13
lms/static/coffee/src/discussion/content.coffee
+0
-12
lms/static/coffee/src/discussion/discussion_module.coffee
+1
-1
lms/templates/courseware/courseware.html
+1
-0
No files found.
lms/static/coffee/src/discussion/content.coffee
View file @
16ca13f2
...
@@ -365,9 +365,6 @@ if Backbone?
...
@@ -365,9 +365,6 @@ if Backbone?
initTimeago
:
->
initTimeago
:
->
@
$
(
"span.timeago"
).
timeago
()
@
$
(
"span.timeago"
).
timeago
()
initPermalink
:
->
@
$
(
".discussion-permanent-link"
).
attr
"href"
,
@
model
.
permalink
()
renderPartial
:
->
renderPartial
:
->
for
attr
,
value
of
@
model
.
changedAttributes
()
for
attr
,
value
of
@
model
.
changedAttributes
()
if
@
partial
[
attr
]
if
@
partial
[
attr
]
...
@@ -402,10 +399,6 @@ if Backbone?
...
@@ -402,10 +399,6 @@ if Backbone?
@
set
(
'thread'
,
@
)
@
set
(
'thread'
,
@
)
super
()
super
()
permalink
:
->
discussion_id
=
@
get
(
'commentable_id'
)
return
Discussion
.
urlFor
(
"permanent_link_thread"
,
discussion_id
,
@
id
)
class
@
ThreadView
extends
@
ContentView
class
@
ThreadView
extends
@
ContentView
class
@
Comment
extends
@
Content
class
@
Comment
extends
@
Content
...
@@ -418,11 +411,6 @@ if Backbone?
...
@@ -418,11 +411,6 @@ if Backbone?
'update'
:
->
DiscussionUtil
.
urlFor
(
'update_comment'
,
@
id
)
'update'
:
->
DiscussionUtil
.
urlFor
(
'update_comment'
,
@
id
)
'delete'
:
->
DiscussionUtil
.
urlFor
(
'delete_comment'
,
@
id
)
'delete'
:
->
DiscussionUtil
.
urlFor
(
'delete_comment'
,
@
id
)
permalink
:
->
thread_id
=
@
get
(
'thread'
).
id
discussion_id
=
@
get
(
'thread'
).
get
(
'commentable_id'
)
return
Discussion
.
urlFor
(
"permanent_link_comment"
,
discussion_id
,
thread_id
,
@
id
)
getCommentsCount
:
->
getCommentsCount
:
->
count
=
0
count
=
0
@
get
(
'comments'
).
each
(
comment
)
->
@
get
(
'comments'
).
each
(
comment
)
->
...
...
lms/static/coffee/src/discussion/discussion_module.coffee
View file @
16ca13f2
...
@@ -16,7 +16,7 @@ if Backbone?
...
@@ -16,7 +16,7 @@ if Backbone?
$elem
=
$
(
event
.
target
)
$elem
=
$
(
event
.
target
)
discussion_id
=
$elem
.
attr
(
"discussion_id"
)
discussion_id
=
$elem
.
attr
(
"discussion_id"
)
url
=
DiscussionUtil
.
urlFor
'retrieve_discussion'
,
discussion_id
url
=
DiscussionUtil
.
urlFor
'retrieve_discussion'
,
discussion_id
Discussion
.
safeAjax
Discussion
Util
.
safeAjax
$elem
:
$elem
$elem
:
$elem
url
:
url
url
:
url
type
:
"GET"
type
:
"GET"
...
...
lms/templates/courseware/courseware.html
View file @
16ca13f2
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
##
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/CodeMirror-2.25/mode/python/python.js')}"
></script>
##
<script
type=
"text/javascript"
src=
"${static.url('js/vendor/CodeMirror-2.25/mode/python/python.js')}"
></script>
<
%
static:js
group=
'courseware'
/>
<
%
static:js
group=
'courseware'
/>
<
%
static:js
group=
'discussion'
/>
<
%
include
file=
"../discussion/_js_body_dependencies.html"
/>
<
%
include
file=
"../discussion/_js_body_dependencies.html"
/>
...
...
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