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
5c91edd4
Commit
5c91edd4
authored
Jul 30, 2013
by
Kevin Chugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update coffeescript to use new status url
parent
986a2cde
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
common/static/coffee/src/discussion/utils.coffee
+1
-1
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
+1
-2
lms/djangoapps/notification_prefs/views.py
+1
-1
No files found.
common/static/coffee/src/discussion/utils.coffee
View file @
5c91edd4
...
...
@@ -84,7 +84,7 @@ class @DiscussionUtil
threads
:
"/courses/
#{
$$course_id
}
/discussion/forum"
"enable_notifications"
:
"/notification_prefs/enable/"
"disable_notifications"
:
"/notification_prefs/disable/"
"notifications_status"
:
"
/user_api/v1
/user_prefs/?key=notification_pref&use=
#{
param
}
"
"notifications_status"
:
"
notification_prefs/status
/user_prefs/?key=notification_pref&use=
#{
param
}
"
}[
name
]
@
safeAjax
:
(
params
)
->
...
...
common/static/coffee/src/discussion/views/discussion_thread_list_view.coffee
View file @
5c91edd4
...
...
@@ -202,9 +202,8 @@ if Backbone?
DiscussionUtil
.
safeAjax
url
:
url
type
:
"GET"
dataType
:
'json'
success
:
(
response
,
textStatus
)
=>
if
response
.
count
==
1
if
response
.
status
$
(
'input.email-setting'
).
attr
(
'checked'
,
'checked'
)
else
$
(
'input.email-setting'
).
removeAttr
(
'checked'
)
...
...
lms/djangoapps/notification_prefs/views.py
View file @
5c91edd4
...
...
@@ -142,7 +142,7 @@ def ajax_status(request):
if
not
request
.
user
.
is_authenticated
():
raise
PermissionDenied
prefs
UserPreference
.
objects
.
get
(
prefs
=
UserPreference
.
objects
.
get
(
user
=
request
.
user
,
key
=
NOTIFICATION_PREF_KEY
,
defaults
=
{
...
...
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