mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
The value of slider changes in frontend, and readout, but not in python obj.
This commit is contained in:
parent
62c9ee7c2a
commit
dc2672f2ec
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user