Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
problem-builder
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
OpenEdx
problem-builder
Commits
b30ab46b
Commit
b30ab46b
authored
Oct 19, 2015
by
Braden MacDonald
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: extended review of slider step showed wrong value
parent
6db57129
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
problem_builder/public/js/slider.js
+2
-2
problem_builder/slider.py
+0
-1
No files found.
problem_builder/public/js/slider.js
View file @
b30ab46b
...
...
@@ -15,11 +15,11 @@ function SliderBlock(runtime, element) {
},
submit
:
function
()
{
return
this
.
value
();
return
this
.
value
()
/
100.0
;
},
handleReview
:
function
(
result
){
$slider
.
val
(
result
.
submission
);
$slider
.
val
(
result
.
submission
*
100.0
);
$slider
.
prop
(
'disabled'
,
true
);
},
...
...
problem_builder/slider.py
View file @
b30ab46b
...
...
@@ -140,7 +140,6 @@ class SliderBlock(
def
submit
(
self
,
value
):
log
.
debug
(
u'Received Slider submission: "
%
s"'
,
value
)
value
=
value
/
100.0
if
value
<
0
or
value
>
1
:
return
{}
# Invalid
self
.
student_value
=
value
...
...
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