##// END OF EJS Templates
fix notebook_path in menu bar
MinRK -
Show More
@@ -59,7 +59,8 var IPython = (function (IPython) {
59 59
60 60 MenuBar.prototype._nbconvert = function (format, download) {
61 61 download = download || false;
62 var notebook_name = IPython.notebook.get_notebook_name();
62 var notebook_path = IPython.notebook.notebook_path;
63 var notebook_name = IPython.notebook.notebook_name;
63 64 if (IPython.notebook.dirty) {
64 65 IPython.notebook.save_notebook({async : false});
65 66 }
@@ -67,8 +68,8 var IPython = (function (IPython) {
67 68 this.base_url,
68 69 'nbconvert',
69 70 format,
70 this.notebook_path,
71 notebook_name + '.ipynb'
71 notebook_path,
72 notebook_name
72 73 ) + "?download=" + download.toString();
73 74
74 75 window.open(url);
@@ -103,7 +104,7 var IPython = (function (IPython) {
103 104 base_url,
104 105 'files',
105 106 notebook_path,
106 notebook_name + '.ipynb'
107 notebook_name
107 108 );
108 109 window.location.assign(url);
109 110 });
General Comments 0
You need to be logged in to leave comments. Login now