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
923a2045
Commit
923a2045
authored
Mar 21, 2017
by
Eric Fischer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hacky attempt at translation layer
parent
a3a84dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
openassessment/xblock/static/js/src/lms/oa_course_items_listing.js
+12
-6
No files found.
openassessment/xblock/static/js/src/lms/oa_course_items_listing.js
View file @
923a2045
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
cell
:
"string"
,
num
:
true
,
editable
:
false
cell
:
"string"
,
num
:
true
,
editable
:
false
},
},
{
{
name
:
'
staff
'
,
label
:
gettext
(
"Staff"
),
label_summary
:
gettext
(
"Staff"
),
name
:
'
waiting
'
,
label
:
gettext
(
"Staff"
),
label_summary
:
gettext
(
"Staff"
),
cell
:
StaffCell
,
num
:
true
,
editable
:
false
cell
:
StaffCell
,
num
:
true
,
editable
:
false
},
},
{
{
...
@@ -116,7 +116,7 @@
...
@@ -116,7 +116,7 @@
var
self
=
this
;
var
self
=
this
;
var
$section
=
this
.
$section
;
var
$section
=
this
.
$section
;
var
block
=
$section
.
find
(
'.open-response-assessment-block'
);
var
block
=
$section
.
find
(
'.open-response-assessment-block'
);
var
oraSteps
=
[
'training'
,
'peer'
,
'self'
,
'
staff
'
,
'done'
];
var
oraSteps
=
[
'training'
,
'peer'
,
'self'
,
'
waiting
'
,
'done'
];
$
.
each
(
self
.
oraData
,
function
(
i
,
oraItem
)
{
$
.
each
(
self
.
oraData
,
function
(
i
,
oraItem
)
{
var
total
=
0
;
var
total
=
0
;
...
@@ -151,21 +151,27 @@
...
@@ -151,21 +151,27 @@
$section
.
find
(
".open-response-assessment-summary"
).
empty
();
$section
.
find
(
".open-response-assessment-summary"
).
empty
();
$
.
each
(
this
.
_columns
,
function
(
index
,
v
)
{
$
.
each
(
this
.
_columns
,
function
(
index
,
v
)
{
var
realName
=
v
.
name
===
'waiting'
?
'staff'
:
v
.
name
;
summaryData
.
push
({
summaryData
.
push
({
title
:
v
.
label_summary
,
title
:
v
.
label_summary
,
value
:
0
,
value
:
0
,
num
:
v
.
num
,
num
:
v
.
num
,
class
:
v
.
n
ame
class
:
realN
ame
});
});
summaryDataMap
[
v
.
n
ame
]
=
index
;
summaryDataMap
[
realN
ame
]
=
index
;
});
});
$
.
each
(
data
,
function
(
index
,
obj
)
{
$
.
each
(
data
,
function
(
index
,
obj
)
{
var
isStaffGraded
=
obj
.
staff_assessment
;
$
.
each
(
obj
,
function
(
key
,
value
)
{
$
.
each
(
obj
,
function
(
key
,
value
)
{
var
idx
=
0
;
var
idx
=
0
;
if
(
key
in
summaryDataMap
)
{
var
realKey
=
key
;
idx
=
summaryDataMap
[
key
];
if
(
key
===
'waiting'
&&
isStaffGraded
)
{
realKey
=
'staff'
;
}
if
(
realKey
in
summaryDataMap
)
{
idx
=
summaryDataMap
[
realKey
];
if
(
summaryData
[
idx
].
num
)
{
if
(
summaryData
[
idx
].
num
)
{
summaryData
[
idx
].
value
+=
value
;
summaryData
[
idx
].
value
+=
value
;
}
else
{
}
else
{
...
...
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