From 873d1d231e0177ad97b2784ea485a7ad3fbec113 Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Wed, 20 Nov 2013 23:14:21 +0000 Subject: [PATCH] Make sure DOM element ids start with alphabetic characters, not numeric. --- IPython/html/static/notebook/js/widgets/multicontainer.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/IPython/html/static/notebook/js/widgets/multicontainer.js b/IPython/html/static/notebook/js/widgets/multicontainer.js index 9eea55d6b..6f313dca3 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')