Show More
@@ -22,10 +22,12 define(["notebook/js/widget"], function(){ | |||
|
22 | 22 | this.$droplabel = $('<button />') |
|
23 | 23 | .addClass('btn') |
|
24 | 24 | .addClass('widget-combo-btn') |
|
25 | .html(' ') | |
|
25 | 26 | .appendTo(this.$buttongroup); |
|
26 | 27 | this.$dropbutton = $('<button />') |
|
27 | 28 | .addClass('btn') |
|
28 | 29 | .addClass('dropdown-toggle') |
|
30 | .addClass('widget-combo-carrot-btn') | |
|
29 | 31 | .attr('data-toggle', 'dropdown') |
|
30 | 32 | .html('<span class="caret"></span>') |
|
31 | 33 | .appendTo(this.$buttongroup); |
@@ -40,7 +42,14 define(["notebook/js/widget"], function(){ | |||
|
40 | 42 | // Handles: Backend -> Frontend Sync |
|
41 | 43 | // Frontent -> Frontend Sync |
|
42 | 44 | update : function(){ |
|
45 | ||
|
46 | var selected_item_text = this.model.get('value'); | |
|
47 | selected_item_text.replace(' ', ''); | |
|
48 | if (selected_item_text == '') { | |
|
49 | this.$droplabel.html(' '); | |
|
50 | } else { | |
|
43 | 51 | this.$droplabel.html(this.model.get('value')); |
|
52 | } | |
|
44 | 53 | |
|
45 | 54 | var items = this.model.get('values'); |
|
46 | 55 | this.$droplist.html(''); |
General Comments 0
You need to be logged in to leave comments.
Login now