##// END OF EJS Templates
Remove Rename dialog from the DOM upon closing it.
Brian Granger -
Show More
@@ -61,7 +61,7 b' var IPython = (function (IPython) {'
61 .addClass('ui-widget ui-widget-content')
61 .addClass('ui-widget ui-widget-content')
62 .attr('value',that.get_notebook_name())
62 .attr('value',that.get_notebook_name())
63 );
63 );
64 $(document).append(dialog);
64 // $(document).append(dialog);
65 dialog.dialog({
65 dialog.dialog({
66 resizable: false,
66 resizable: false,
67 modal: true,
67 modal: true,
@@ -80,10 +80,12 b' var IPython = (function (IPython) {'
80 that.set_notebook_name(new_name);
80 that.set_notebook_name(new_name);
81 that.save_notebook();
81 that.save_notebook();
82 $(this).dialog('close');
82 $(this).dialog('close');
83 $(this).dialog('destroy').remove();
83 }
84 }
84 },
85 },
85 "Cancel": function () {
86 "Cancel": function () {
86 $(this).dialog('close');
87 $(this).dialog('close');
88 $(this).dialog('destroy').remove();
87 }
89 }
88 }
90 }
89 });
91 });
General Comments 0
You need to be logged in to leave comments. Login now