From e7db8cfd4e0381d3ac64c1ec49bbdecea918c762 Mon Sep 17 00:00:00 2001 From: MinRK Date: Wed, 5 Feb 2014 17:54:36 -0800 Subject: [PATCH] fix notebook_path in menu bar --- IPython/html/static/notebook/js/menubar.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/IPython/html/static/notebook/js/menubar.js b/IPython/html/static/notebook/js/menubar.js index fd0ca15c0..5bac6a73f 100644 --- a/IPython/html/static/notebook/js/menubar.js +++ b/IPython/html/static/notebook/js/menubar.js @@ -59,7 +59,8 @@ var IPython = (function (IPython) { MenuBar.prototype._nbconvert = function (format, download) { download = download || false; - var notebook_name = IPython.notebook.get_notebook_name(); + var notebook_path = IPython.notebook.notebook_path; + var notebook_name = IPython.notebook.notebook_name; if (IPython.notebook.dirty) { IPython.notebook.save_notebook({async : false}); } @@ -67,8 +68,8 @@ var IPython = (function (IPython) { this.base_url, 'nbconvert', format, - this.notebook_path, - notebook_name + '.ipynb' + notebook_path, + notebook_name ) + "?download=" + download.toString(); window.open(url); @@ -103,7 +104,7 @@ var IPython = (function (IPython) { base_url, 'files', notebook_path, - notebook_name + '.ipynb' + notebook_name ); window.location.assign(url); });