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