Show More
@@ -69,10 +69,10 b' var IPython = (function (IPython) {' | |||||
69 | var f = files[i]; |
|
69 | var f = files[i]; | |
70 | var reader = new FileReader(); |
|
70 | var reader = new FileReader(); | |
71 | reader.readAsText(f); |
|
71 | reader.readAsText(f); | |
72 |
var |
|
72 | var name_and_ext = utils.splitext(f.name); | |
73 |
var nbname = |
|
73 | var nbname = name_and_ext[0]; | |
74 |
var file_ext = |
|
74 | var file_ext = name_and_ext[-1]; | |
75 | if (file_ext === 'ipynb') { |
|
75 | if (file_ext === '.ipynb') { | |
76 | var item = that.new_notebook_item(0); |
|
76 | var item = that.new_notebook_item(0); | |
77 | that.add_name_input(nbname, item); |
|
77 | that.add_name_input(nbname, item); | |
78 | // Store the notebook item in the reader so we can use it later |
|
78 | // Store the notebook item in the reader so we can use it later | |
@@ -174,7 +174,7 b' var IPython = (function (IPython) {' | |||||
174 | for (var i=0; i<len; i++) { |
|
174 | for (var i=0; i<len; i++) { | |
175 | var name = data[i].name; |
|
175 | var name = data[i].name; | |
176 | var path = this.notebookPath(); |
|
176 | var path = this.notebookPath(); | |
177 |
var nbname = name |
|
177 | var nbname = utils.splitext(name)[0]; | |
178 | var item = this.new_notebook_item(i); |
|
178 | var item = this.new_notebook_item(i); | |
179 | this.add_link(path, nbname, item); |
|
179 | this.add_link(path, nbname, item); | |
180 | name = utils.url_path_join(this.notebookPath(), name); |
|
180 | name = utils.url_path_join(this.notebookPath(), name); |
General Comments 0
You need to be logged in to leave comments.
Login now