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
1b298107
Commit
1b298107
authored
Jun 03, 2014
by
gradyward
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the appropriate server call to the JS.
parent
4f5848a9
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 @
1b298107
This diff is collapsed.
Click to expand it.
apps/openassessment/xblock/static/js/src/oa_server.js
View file @
1b298107
...
...
@@ -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.
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