Show More
@@ -50,16 +50,16 b' var IPython = (function (IPython) {' | |||||
50 | // "my_button_group_id" |
|
50 | // "my_button_group_id" | |
51 | // ) |
|
51 | // ) | |
52 | // |
|
52 | // | |
53 | ToolBar.prototype.add_button_group = function(list, group_id){ |
|
53 | ToolBar.prototype.add_button_group = function (list, group_id) { | |
54 | var span_group = $('<span/>'); |
|
54 | var span_group = $('<span/>'); | |
55 | if( group_id != undefined ) { |
|
55 | if( group_id != undefined ) { | |
56 | span_group.attr('id',group_id); |
|
56 | span_group.attr('id',group_id); | |
57 | } |
|
57 | } | |
58 | for(var el in list) { |
|
58 | for(var el in list) { | |
59 | var button = $('<button/>').button({ |
|
59 | var button = $('<button/>').button({ | |
60 | icons : {primary: list[el].icon}, |
|
60 | icons : {primary : list[el].icon}, | |
61 | text : false, |
|
61 | text : false, | |
62 | label: list[el].label |
|
62 | label : list[el].label | |
63 | }); |
|
63 | }); | |
64 | var id = list[el].id; |
|
64 | var id = list[el].id; | |
65 | if( id != undefined ) |
|
65 | if( id != undefined ) |
General Comments 0
You need to be logged in to leave comments.
Login now