From 310383600d31fbb3cb69e4bf6a9c42bb638e5579 2012-01-18 02:27:49 From: Brian Granger Date: 2012-01-18 02:27:49 Subject: [PATCH] Remove Rename dialog from the DOM upon closing it. --- diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index 5520d2a..eb17480 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -61,7 +61,7 @@ var IPython = (function (IPython) { .addClass('ui-widget ui-widget-content') .attr('value',that.get_notebook_name()) ); - $(document).append(dialog); + // $(document).append(dialog); dialog.dialog({ resizable: false, modal: true, @@ -80,10 +80,12 @@ var IPython = (function (IPython) { that.set_notebook_name(new_name); that.save_notebook(); $(this).dialog('close'); + $(this).dialog('destroy').remove(); } }, "Cancel": function () { $(this).dialog('close'); + $(this).dialog('destroy').remove(); } } });