Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-activetable
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
xblock-activetable
Commits
706d9372
Commit
706d9372
authored
Oct 30, 2015
by
Sven Marnach
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix order of indices in cell ids to be consistent with the old version.
parent
7507f88b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
activetable/activetable.py
+2
-1
activetable/static/js/src/activetable.js
+1
-1
No files found.
activetable/activetable.py
View file @
706d9372
...
...
@@ -153,7 +153,8 @@ class ActiveTableXBlock(StudioEditableXBlockMixin, XBlock):
else
:
row
[
'class'
]
=
'odd'
for
cell
in
row
[
'cells'
]:
cell
.
id
=
'cell_{}_{}'
.
format
(
cell
.
index
,
row
[
'index'
])
cell
.
id
=
'cell_{}_{}'
.
format
(
row
[
'index'
],
cell
.
index
)
cell
.
classes
=
''
if
not
cell
.
is_static
:
self
.
response_cells
[
cell
.
id
]
=
cell
cell
.
classes
=
'active'
...
...
activetable/static/js/src/activetable.js
View file @
706d9372
...
...
@@ -33,7 +33,7 @@ function ActiveTableXBlock(runtime, element, init_args) {
else
if
(
data
.
num_total_answers
==
data
.
num_correct_answers
)
{
$status
.
removeClass
(
'incorrect'
).
addClass
(
'correct'
);
$status
.
text
(
'correct'
);
$status_message
.
text
(
'Great job!
'
);
$status_message
.
text
(
'Great job!'
);
}
else
{
$status
.
removeClass
(
'correct'
).
addClass
(
'incorrect'
);
$status
.
text
(
'incorrect'
);
...
...
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