Show More
@@ -38,8 +38,8 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 |
description = description.replace( |
|
41 | description = description.replace(/ /g, ' ', 'm'); | |
42 |
description = description.replace( |
|
42 | description = description.replace(/\n/g, '<br>\n', 'm'); | |
43 | if (description.length == 0) { |
|
43 | if (description.length == 0) { | |
44 | this.$el.html(' '); // Preserve button height |
|
44 | this.$el.html(' '); // Preserve button height | |
45 | } else { |
|
45 | } else { |
@@ -60,8 +60,8 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 = selected_item_text.replace( |
|
63 | selected_item_text = selected_item_text.replace(/ /g, ' '); | |
64 |
selected_item_text = selected_item_text.replace( |
|
64 | selected_item_text = selected_item_text.replace(/\n/g, '<br>\n'); | |
65 | if (selected_item_text.length == 0) { |
|
65 | if (selected_item_text.length == 0) { | |
66 | this.$droplabel.html(' '); |
|
66 | this.$droplabel.html(' '); | |
67 | } else { |
|
67 | } else { |
General Comments 0
You need to be logged in to leave comments.
Login now