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
47dbf2e6
Commit
47dbf2e6
authored
Jul 29, 2013
by
Your Name
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updates but getting status and setting status not working
parent
06eb5cdd
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
6 deletions
+15
-6
common/static/coffee/src/discussion/utils.coffee
+2
-0
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+13
-5
lms/djangoapps/notification_prefs/views.py
+0
-1
No files found.
common/static/coffee/src/discussion/utils.coffee
View file @
47dbf2e6
...
...
@@ -82,6 +82,8 @@ class @DiscussionUtil
user_profile
:
"/courses/
#{
$$course_id
}
/discussion/forum/users/
#{
param
}
"
followed_threads
:
"/courses/
#{
$$course_id
}
/discussion/forum/users/
#{
param
}
/followed"
threads
:
"/courses/
#{
$$course_id
}
/discussion/forum"
"enable_notifications"
:
"/notification_prefs/enable/"
"disable_notifications"
:
"/notification_prefs/disable/"
}[
name
]
@
safeAjax
:
(
params
)
->
...
...
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
47dbf2e6
...
...
@@ -197,7 +197,12 @@ if Backbone?
@
template
=
_
.
template
(
$
(
"#discussion-home"
).
html
())
$
(
".discussion-column"
).
html
(
@
template
)
$
(
".post-list a"
).
removeClass
(
"active"
)
$
(
".email-notification"
).
bind
"click"
,
@
updateEmailNotifications
$
(
"input.email-setting"
).
bind
"click"
,
@
updateEmailNotifications
url
=
DiscussionUtil
.
urlFor
(
"get_notifications_state"
,
window
.
user
.
get
(
"id"
))
DiscussionUtil
.
safeAjax
url
:
url
type
:
"POST"
dataType
:
'json'
thread_id
=
null
toggleTopicDrop
:
(
event
)
=>
...
...
@@ -432,20 +437,23 @@ if Backbone?
updateEmailNotifications
:
()
=>
if
$
(
'input.email-notification'
).
attr
(
'checked'
)
DiscussionUtil
.
safeAjax
url
:
'/notification_prefs/enable/'
url
:
DiscussionUtil
.
urlFor
(
"enable_notifications"
)
type
:
"POST"
dataType
:
'json'
data
:
user
name
:
window
.
user
.
get
(
"username
"
)
user
:
window
.
user
.
get
(
"id
"
)
error
:
()
=>
$
(
'input.email-notification'
).
removeAttr
(
'checked'
)
else
DiscussionUtil
.
safeAjax
url
:
'/notification_prefs/disable/'
url
:
DiscussionUtil
.
urlFor
(
"disable_notifications"
)
type
:
"POST"
dataType
:
'json'
data
:
user
name
:
window
.
user
.
get
(
"username
"
)
user
:
window
.
user
.
get
(
"id
"
)
error
:
()
=>
$
(
'input.email-notification'
).
attr
(
'checked'
,
'checked'
)
lms/djangoapps/notification_prefs/views.py
View file @
47dbf2e6
...
...
@@ -131,7 +131,6 @@ def ajax_disable(request):
return
HttpResponse
(
status
=
204
)
@require_GET
def
unsubscribe
(
request
,
token
):
"""
...
...
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