##// END OF EJS Templates
Make sure DOM element ids start with alphabetic characters, not numeric.
Jonathan Frederic -
Show More
@@ -21,7 +21,8 b' define(["notebook/js/widget"], function(widget_manager){'
21 var AccordionView = IPython.WidgetView.extend({
21 var AccordionView = IPython.WidgetView.extend({
22
22
23 render: function(){
23 render: function(){
24 this.$el = $('<div />', {id: IPython.utils.uuid()})
24 var guid = 'accordion' + IPython.utils.uuid();
25 this.$el = $('<div />', {id: guid})
25 .addClass('accordion');
26 .addClass('accordion');
26 this._ensureElement();
27 this._ensureElement();
27 this.containers = [];
28 this.containers = [];
@@ -103,7 +104,7 b' define(["notebook/js/widget"], function(widget_manager){'
103 var TabView = IPython.WidgetView.extend({
104 var TabView = IPython.WidgetView.extend({
104
105
105 render: function(){
106 render: function(){
106 var uuid = IPython.utils.uuid();
107 var uuid = 'tabs'+IPython.utils.uuid();
107 var that = this;
108 var that = this;
108 this.$tabs = $('<div />', {id: uuid})
109 this.$tabs = $('<div />', {id: uuid})
109 .addClass('nav')
110 .addClass('nav')
General Comments 0
You need to be logged in to leave comments. Login now