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