Show More
@@ -72,17 +72,17 b' define([' | |||
|
72 | 72 | this.$slider.slider('option', 'orientation', orientation); |
|
73 | 73 | var value = this.model.get('value'); |
|
74 | 74 | if (this.model.get('range')) { |
|
75 |
|
|
|
76 |
|
|
|
75 | // values for the range case are validated python-side in | |
|
76 | // _Bounded{Int,Float}RangeWidget._validate | |
|
77 | 77 | this.$slider.slider('option', 'values', value); |
|
78 | 78 | this.$readout.text(value.join("-")); |
|
79 | 79 | } else { |
|
80 |
|
|
|
81 |
|
|
|
82 |
|
|
|
83 |
|
|
|
84 |
|
|
|
85 |
|
|
|
80 | if(value > max) { | |
|
81 | value = max; | |
|
82 | } | |
|
83 | else if(value < min){ | |
|
84 | value = min; | |
|
85 | } | |
|
86 | 86 | this.$slider.slider('option', 'value', value); |
|
87 | 87 | this.$readout.text(value); |
|
88 | 88 | } |
General Comments 0
You need to be logged in to leave comments.
Login now