##// END OF EJS Templates
Merge pull request #4425 from Carreau/fix-js-python...
Matthias Bussonnier -
r13323:377a7c23 merge
parent child Browse files
Show More
@@ -71,7 +71,7 b' var IPython = (function (IPython) {'
71 reader.readAsText(f);
71 reader.readAsText(f);
72 var name_and_ext = utils.splitext(f.name);
72 var name_and_ext = utils.splitext(f.name);
73 var nbname = name_and_ext[0];
73 var nbname = name_and_ext[0];
74 var file_ext = name_and_ext[-1];
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);
@@ -326,7 +326,7 b' var IPython = (function (IPython) {'
326 var settings = {
326 var settings = {
327 processData : false,
327 processData : false,
328 cache : false,
328 cache : false,
329 type : 'POST',
329 type : 'PUT',
330 dataType : 'json',
330 dataType : 'json',
331 data : JSON.stringify(model),
331 data : JSON.stringify(model),
332 headers : {'Content-Type': content_type},
332 headers : {'Content-Type': content_type},
General Comments 0
You need to be logged in to leave comments. Login now