##// END OF EJS Templates
Remove errant tabs from js
Gordon Ball -
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 // values for the range case are validated python-side in
75 // values for the range case are validated python-side in
76 // _Bounded{Int,Float}RangeWidget._validate
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 if(value > max) {
80 if(value > max) {
81 value = max;
81 value = max;
82 }
82 }
83 else if(value < min){
83 else if(value < min){
84 value = min;
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