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
b4c80da2
Commit
b4c80da2
authored
Jan 30, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Trim whitespace
parent
8e9ec501
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
lms/djangoapps/open_ended_grading/views.py
+5
-1
lms/static/coffee/src/open_ended/open_ended.coffee
+0
-1
No files found.
lms/djangoapps/open_ended_grading/views.py
View file @
b4c80da2
...
...
@@ -25,6 +25,8 @@ import open_ended_notifications
from
xmodule.modulestore.django
import
modulestore
from
xmodule.modulestore
import
search
from
django.http
import
HttpResponse
,
Http404
log
=
logging
.
getLogger
(
__name__
)
template_imports
=
{
'urllib'
:
urllib
}
...
...
@@ -306,7 +308,9 @@ def take_action_on_flags(request, course_id):
submission_id
=
p
[
'submission_id'
]
action_type
=
p
[
'action_type'
]
student_id
=
p
[
'student_id'
]
student_id
=
student_id
.
strip
(
'
\t\n\r
'
)
submission_id
=
submission_id
.
strip
(
'
\t\n\r
'
)
action_type
=
action_type
.
lower
()
.
strip
(
'
\t\n\r
'
)
try
:
response
=
controller_qs
.
take_action_on_flags
(
course_id
,
student_id
,
submission_id
,
action_type
)
return
HttpResponse
(
response
,
mimetype
=
"application/json"
)
...
...
lms/static/coffee/src/open_ended/open_ended.coffee
View file @
b4c80da2
...
...
@@ -29,7 +29,6 @@ class OpenEnded
action_type
=
"ban"
submission_id
=
tr_children
[
4
].
innerText
student_id
=
tr_children
[
5
].
innerText
@
gentle_alert
student_id
@
post
(
'take_action_on_flags'
,
{
'submission_id'
:
submission_id
,
'student_id'
:
student_id
,
'action_type'
:
action_type
},
@
handle_after_action
)
post
:
(
cmd
,
data
,
callback
)
->
...
...
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