Commit b30ab46b by Braden MacDonald

Fix: extended review of slider step showed wrong value

parent 6db57129
......@@ -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);
},
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment