From f3b6c24d087dd3a479619005193098ce6b957253 2014-01-22 23:53:58 From: Jonathan Frederic Date: 2014-01-22 23:53:58 Subject: [PATCH] Support multiple types in selection widget. --- diff --git a/IPython/html/static/notebook/js/widgets/widget_selection.js b/IPython/html/static/notebook/js/widgets/widget_selection.js index 896beda..ece7a9a 100644 --- a/IPython/html/static/notebook/js/widgets/widget_selection.js +++ b/IPython/html/static/notebook/js/widgets/widget_selection.js @@ -57,14 +57,14 @@ define(["notebook/js/widgets/widget"], function(WidgetManager){ // changed by another view or by a state update from the back-end. if (options === undefined || options.updated_view != this) { - var selected_item_text = this.model.get('value'); + var selected_item_text = this.model.get('_value'); if (selected_item_text.length === 0) { this.$droplabel.text(' '); } else { this.$droplabel.text(selected_item_text); } - var items = this.model.get('values'); + var items = this.model.get('_values'); var $replace_droplist = $('