##// END OF EJS Templates
The value of slider changes in frontend, and readout, but not in python obj.
Tarun Gaba -
Show More
@@ -68,8 +68,13 b' define(['
68 this.$slider.slider('option', 'value', min);
68 this.$slider.slider('option', 'value', min);
69 this.$slider.slider('option', 'orientation', orientation);
69 this.$slider.slider('option', 'orientation', orientation);
70 value = this.model.get('value');
70 value = this.model.get('value');
71 if(value > max) value = max;
71 if(value > max) {
72 else if(value < min) value = min;
72 value = max;
73 }
74 else if(value < min){
75 value = min;
76 }
77 this.model.set('value', value, {updated_view: this});
73 this.$slider.slider('option', 'value', value);
78 this.$slider.slider('option', 'value', value);
74 this.$readout.text(value);
79 this.$readout.text(value);
75
80
General Comments 0
You need to be logged in to leave comments. Login now