diff --git a/IPython/frontend/html/notebook/static/css/notebook.css b/IPython/frontend/html/notebook/static/css/notebook.css index 428e536..b68c546 100644 --- a/IPython/frontend/html/notebook/static/css/notebook.css +++ b/IPython/frontend/html/notebook/static/css/notebook.css @@ -359,6 +359,15 @@ p.dialog { @media print { body { overflow: visible !important; } + #menubar, #pager_splitter, #pager { display: none;} + #header {display: none !important; } + #main_app { overflow: visible !important; height: !important auto; } + #notebook_panel { overflow: visible !important; height: !important auto; } + #notebook { + height: !important auto; + overflow-y: !important visible; + overflow-x: !important hidden; + } .ui-widget-content { border: 0px; } } diff --git a/IPython/frontend/html/notebook/static/js/savewidget.js b/IPython/frontend/html/notebook/static/js/savewidget.js index eb17480..7f8d532 100644 --- a/IPython/frontend/html/notebook/static/js/savewidget.js +++ b/IPython/frontend/html/notebook/static/js/savewidget.js @@ -67,6 +67,7 @@ var IPython = (function (IPython) { modal: true, title: "Rename Notebook", closeText: "", + close: function(event, ui) {$(this).dialog('destroy').remove();}, buttons : { "OK": function () { var new_name = $(this).find('input').attr('value'); @@ -80,12 +81,10 @@ 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(); } } });