Show More
@@ -9,6 +9,10 b' define([' | |||||
9 | var IntTextView = int_widgets.IntTextView; |
|
9 | var IntTextView = int_widgets.IntTextView; | |
10 |
|
10 | |||
11 | var FloatSliderView = IntSliderView.extend({ |
|
11 | var FloatSliderView = IntSliderView.extend({ | |
|
12 | _validate_text_input: function(x) { | |||
|
13 | return parseFloat(x); | |||
|
14 | }, | |||
|
15 | ||||
12 | _validate_slide_value: function(x) { |
|
16 | _validate_slide_value: function(x) { | |
13 | // Validate the value of the slider before sending it to the back-end |
|
17 | // Validate the value of the slider before sending it to the back-end | |
14 | // and applying it to the other views on the page. |
|
18 | // and applying it to the other views on the page. |
General Comments 0
You need to be logged in to leave comments.
Login now