Show More
@@ -38,10 +38,11 define(["notebook/js/widget"], function(){ | |||
|
38 | 38 | // Frontent -> Frontend Sync |
|
39 | 39 | update : function(){ |
|
40 | 40 | var description = this.model.get('description'); |
|
41 | description.replace(' ', ' ') | |
|
41 | 42 | if (description.length==0) { |
|
42 |
this.$el.html(' |
|
|
43 | this.$el.html(' '); // Preserve button height | |
|
43 | 44 | } else { |
|
44 | this.$el.html(description); | |
|
45 | this.$el.html(this.model.get('description')); | |
|
45 | 46 | } |
|
46 | 47 | |
|
47 | 48 | return IPython.WidgetView.prototype.update.call(this); |
@@ -60,8 +60,8 define(["notebook/js/widget"], function(){ | |||
|
60 | 60 | update : function(){ |
|
61 | 61 | |
|
62 | 62 | var selected_item_text = this.model.get('value'); |
|
63 | selected_item_text.replace(' ', ''); | |
|
64 |
if (selected_item_text == |
|
|
63 | selected_item_text.replace(' ', ' '); | |
|
64 | if (selected_item_text.length == 0) { | |
|
65 | 65 | this.$droplabel.html(' '); |
|
66 | 66 | } else { |
|
67 | 67 | this.$droplabel.html(this.model.get('value')); |
General Comments 0
You need to be logged in to leave comments.
Login now