Show More
@@ -68,14 +68,18 b' define(["notebook/js/widgets/widget"], function(widget_manager){' | |||
|
68 | 68 | } |
|
69 | 69 | |
|
70 | 70 | var items = this.model.get('values'); |
|
71 |
|
|
|
71 | var $replace_droplist = $('<ul />') | |
|
72 | .addClass('dropdown-menu'); | |
|
72 | 73 | for (var index in items) { |
|
73 | 74 | var that = this; |
|
74 | 75 | var item_button = $('<a href="#"/>') |
|
75 | 76 | .html(items[index]) |
|
76 | 77 | .on('click', $.proxy(this.handle_click, this)); |
|
77 |
|
|
|
78 | $replace_droplist.append($('<li />').append(item_button)); | |
|
78 | 79 | } |
|
80 | this.$droplist.replaceWith($replace_droplist); | |
|
81 | this.$droplist.remove(); | |
|
82 | this.$droplist = $replace_droplist; | |
|
79 | 83 | |
|
80 | 84 | if (this.model.get('disabled')) { |
|
81 | 85 | this.$buttongroup.attr('disabled','disabled'); |
General Comments 0
You need to be logged in to leave comments.
Login now