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
e758460a
Commit
e758460a
authored
Nov 13, 2015
by
Andy Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix staff grading
parent
b11bb68d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
openassessment/templates/openassessmentblock/staff_area/oa_student_info.html
+2
-1
openassessment/xblock/static/js/src/lms/oa_staff_area.js
+13
-8
No files found.
openassessment/templates/openassessmentblock/staff_area/oa_student_info.html
View file @
e758460a
{% load i18n %}
{% load i18n %}
{% load tz %}
{% load tz %}
<div
class=
"openassessment__student-info staff-info__student__report"
>
<div
class=
"openassessment__student-info staff-info__student__report"
data-submission-uuid=
"{{ submission.uuid }}"
>
{% if submission %}
{% if submission %}
<h2
class=
"title"
>
<h2
class=
"title"
>
<span
class=
"label"
>
<span
class=
"label"
>
...
...
openassessment/xblock/static/js/src/lms/oa_staff_area.js
View file @
e758460a
...
@@ -76,10 +76,9 @@
...
@@ -76,10 +76,9 @@
// Install key handler for cancel submission button.
// Install key handler for cancel submission button.
$staffTools
.
on
(
'click'
,
'.action--submit-cancel-submission'
,
function
(
eventObject
)
{
$staffTools
.
on
(
'click'
,
'.action--submit-cancel-submission'
,
function
(
eventObject
)
{
eventObject
.
preventDefault
();
eventObject
.
preventDefault
();
view
.
cancelSubmission
(
$
(
this
).
data
(
'submission-uuid'
));
view
.
cancelSubmission
(
$
(
this
).
data
(
'submission-uuid'
));
}
});
);
// Install change handler for textarea (to enable cancel submission button)
// Install change handler for textarea (to enable cancel submission button)
var
handleChange
=
function
(
eventData
)
{
view
.
handleCommentChanged
(
eventData
);
};
var
handleChange
=
function
(
eventData
)
{
view
.
handleCommentChanged
(
eventData
);
};
...
@@ -99,8 +98,12 @@
...
@@ -99,8 +98,12 @@
// Install a click handler for the submit button
// Install a click handler for the submit button
$
(
'.wrapper--staff-assessment .action--submit'
,
view
.
element
).
click
(
$
(
'.wrapper--staff-assessment .action--submit'
,
view
.
element
).
click
(
function
(
eventObject
)
{
function
(
eventObject
)
{
var
target
=
$
(
eventObject
.
currentTarget
),
rootElement
=
target
.
closest
(
'.openassessment__student-info'
),
submissionID
=
rootElement
.
data
(
'submission-uuid'
);
eventObject
.
preventDefault
();
eventObject
.
preventDefault
();
view
.
submitStaffAssessment
(
rubric
);
view
.
submitStaffAssessment
(
submissionID
,
rubric
);
}
}
);
);
}
}
...
@@ -320,16 +323,18 @@
...
@@ -320,16 +323,18 @@
*
*
* @param rubric The rubric being assessed.
* @param rubric The rubric being assessed.
*/
*/
submitStaffAssessment
:
function
(
rubric
)
{
submitStaffAssessment
:
function
(
submissionID
,
rubric
)
{
// Send the assessment to the server
// Send the assessment to the server
var
view
=
this
;
var
view
=
this
;
var
baseView
=
this
.
baseView
;
var
baseView
=
this
.
baseView
;
baseView
.
toggleActionError
(
'staff'
,
null
);
baseView
.
toggleActionError
(
'staff'
,
null
);
view
.
staffSubmitEnabled
(
false
);
view
.
staffSubmitEnabled
(
false
);
this
.
server
.
staffAssess
(
rubric
.
optionsSelected
(),
rubric
.
criterionFeedback
(),
rubric
.
overallFeedback
())
this
.
server
.
staffAssess
(
rubric
.
optionsSelected
(),
rubric
.
criterionFeedback
(),
rubric
.
overallFeedback
(),
submissionID
)
.
done
(
function
()
{
.
done
(
function
()
{
view
.
loadStudentInfo
({
expanded_view
:
'staff-overri
de'
});
view
.
loadStudentInfo
({
expanded_view
:
'final-gra
de'
});
})
})
.
fail
(
function
(
errorMessage
)
{
.
fail
(
function
(
errorMessage
)
{
baseView
.
toggleActionError
(
'staff'
,
errorMessage
);
baseView
.
toggleActionError
(
'staff'
,
errorMessage
);
...
...
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