The value of slider changes in frontend, and readout, but not in python obj.

This commit is contained in:
Tarun Gaba 2014-07-20 13:23:20 +05:30
parent 62c9ee7c2a
commit dc2672f2ec

View File

@ -68,8 +68,13 @@ define([
this.$slider.slider('option', 'value', min);
this.$slider.slider('option', 'orientation', orientation);
value = this.model.get('value');
if(value > max) value = max;
else if(value < min) value = min;
if(value > max) {
value = max;
}
else if(value < min){
value = min;
}
this.model.set('value', value, {updated_view: this});
this.$slider.slider('option', 'value', value);
this.$readout.text(value);