##// END OF EJS Templates
don't use $(document).append (it's wrong and broken)
MinRK -
Show More
@@ -1343,7 +1343,7 b' var IPython = (function (IPython) {'
1343 var that = this;
1343 var that = this;
1344 var dialog = $('<div/>');
1344 var dialog = $('<div/>');
1345 dialog.html('Do you want to restart the current kernel? You will lose all variables defined in it.');
1345 dialog.html('Do you want to restart the current kernel? You will lose all variables defined in it.');
1346 $(document).append(dialog);
1346 $(document.body).append(dialog);
1347 dialog.dialog({
1347 dialog.dialog({
1348 resizable: false,
1348 resizable: false,
1349 modal: true,
1349 modal: true,
@@ -1934,7 +1934,7 b' var IPython = (function (IPython) {'
1934 ).css("text-align", "center")
1934 ).css("text-align", "center")
1935 );
1935 );
1936
1936
1937 $(document).append(dialog);
1937 $(document.body).append(dialog);
1938
1938
1939 dialog.dialog({
1939 dialog.dialog({
1940 resizable: false,
1940 resizable: false,
@@ -99,7 +99,7 b' var IPython = (function (IPython) {'
99 ' the notebook, but running code will no longer work until the notebook' +
99 ' the notebook, but running code will no longer work until the notebook' +
100 ' is reopened.'
100 ' is reopened.'
101 );
101 );
102 $(document).append(dialog);
102 $(document.body).append(dialog);
103 dialog.dialog({
103 dialog.dialog({
104 resizable: false,
104 resizable: false,
105 modal: true,
105 modal: true,
@@ -136,7 +136,7 b' var IPython = (function (IPython) {'
136 " network connection or notebook server configuration.";
136 " network connection or notebook server configuration.";
137 var dialog = $('<div/>');
137 var dialog = $('<div/>');
138 dialog.html(msg);
138 dialog.html(msg);
139 $(document).append(dialog);
139 $(document.body).append(dialog);
140 dialog.dialog({
140 dialog.dialog({
141 resizable: false,
141 resizable: false,
142 modal: true,
142 modal: true,
@@ -79,7 +79,7 b' var IPython = (function (IPython) {'
79 .addClass('ui-widget ui-widget-content')
79 .addClass('ui-widget ui-widget-content')
80 .attr('value',IPython.notebook.get_notebook_name())
80 .attr('value',IPython.notebook.get_notebook_name())
81 );
81 );
82 // $(document).append(dialog);
82 // $(document.body).append(dialog);
83 dialog.dialog({
83 dialog.dialog({
84 resizable: false,
84 resizable: false,
85 modal: true,
85 modal: true,
General Comments 0
You need to be logged in to leave comments. Login now