Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
315be19b
Commit
315be19b
authored
Jun 04, 2014
by
gradyward
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #396 from edx/fix-reschedule-click-handler
Fixed reschedule click handler
parents
fe534349
1b298107
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
apps/openassessment/xblock/static/js/openassessment.min.js
+0
-0
apps/openassessment/xblock/static/js/src/oa_server.js
+24
-0
No files found.
apps/openassessment/xblock/static/js/openassessment.min.js
View file @
315be19b
This diff is collapsed.
Click to expand it.
apps/openassessment/xblock/static/js/src/oa_server.js
View file @
315be19b
...
@@ -371,6 +371,30 @@ OpenAssessment.Server.prototype = {
...
@@ -371,6 +371,30 @@ OpenAssessment.Server.prototype = {
},
},
/**
/**
Reschedules grading tasks for example based assessments
Returns:
JQuery Promise which will resolve with a message indicating success or failure of the scheduling
**/
rescheduleUnfinishedTasks
:
function
()
{
var
url
=
this
.
url
(
'reschedule_unfinished_tasks'
);
return
$
.
Deferred
(
function
(
defer
)
{
$
.
ajax
({
type
:
"POST"
,
url
:
url
,
data
:
"
\"\"
"
}).
done
(
function
(
data
)
{
if
(
data
.
success
)
{
defer
.
resolveWith
(
this
,
[
data
.
msg
]);
}
else
{
defer
.
rejectWith
(
this
,
[
data
.
msg
]);
}
}
).
fail
(
function
(
data
)
{
defer
.
rejectWith
(
this
,
[
gettext
(
'One or more rescheduling tasks failed.'
)]);
});
});
},
/**
Load the XBlock's XML definition from the server.
Load the XBlock's XML definition from the server.
Returns:
Returns:
...
...
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