From 4af2a2b8043de4c1e4120e4460f259b39a2e3cad 2014-01-16 10:57:03 From: Jonathan Frederic Date: 2014-01-16 10:57:03 Subject: [PATCH] Make sure DOM element ids start with alphabetic characters, not numeric. --- diff --git a/IPython/html/static/notebook/js/widgets/multicontainer.js b/IPython/html/static/notebook/js/widgets/multicontainer.js index 9eea55d..6f313dc 100644 --- a/IPython/html/static/notebook/js/widgets/multicontainer.js +++ b/IPython/html/static/notebook/js/widgets/multicontainer.js @@ -21,7 +21,8 @@ define(["notebook/js/widget"], function(widget_manager){ var AccordionView = IPython.WidgetView.extend({ render: function(){ - this.$el = $('
', {id: IPython.utils.uuid()}) + var guid = 'accordion' + IPython.utils.uuid(); + this.$el = $('
', {id: guid}) .addClass('accordion'); this._ensureElement(); this.containers = []; @@ -103,7 +104,7 @@ define(["notebook/js/widget"], function(widget_manager){ var TabView = IPython.WidgetView.extend({ render: function(){ - var uuid = IPython.utils.uuid(); + var uuid = 'tabs'+IPython.utils.uuid(); var that = this; this.$tabs = $('
', {id: uuid}) .addClass('nav')