From c6ecc9875e359b5d8ef44625fad75180936379ae 2014-09-24 13:56:01 From: Gordon Ball Date: 2014-09-24 13:56:01 Subject: [PATCH] Add support to the float slider --- diff --git a/IPython/html/static/widgets/js/widget_float.js b/IPython/html/static/widgets/js/widget_float.js index b5d808f..128c135 100644 --- a/IPython/html/static/widgets/js/widget_float.js +++ b/IPython/html/static/widgets/js/widget_float.js @@ -9,6 +9,10 @@ define([ var IntTextView = int_widgets.IntTextView; var FloatSliderView = IntSliderView.extend({ + _validate_text_input: function(x) { + return parseFloat(x); + }, + _validate_slide_value: function(x) { // Validate the value of the slider before sending it to the back-end // and applying it to the other views on the page.