mirror of
https://github.com/jupyter/notebook.git
synced 2024-12-21 04:10:17 +08:00
Make sure DOM element ids start with alphabetic characters, not numeric.
This commit is contained in:
parent
00f72487c5
commit
873d1d231e
@ -21,7 +21,8 @@ define(["notebook/js/widget"], function(widget_manager){
|
||||
var AccordionView = IPython.WidgetView.extend({
|
||||
|
||||
render: function(){
|
||||
this.$el = $('<div />', {id: IPython.utils.uuid()})
|
||||
var guid = 'accordion' + IPython.utils.uuid();
|
||||
this.$el = $('<div />', {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 = $('<div />', {id: uuid})
|
||||
.addClass('nav')
|
||||
|
Loading…
Reference in New Issue
Block a user