From 377a7c23a475cf1d474111e847957b0b25a94b0f 2013-10-25 18:41:42 From: Matthias Bussonnier Date: 2013-10-25 18:41:42 Subject: [PATCH] Merge pull request #4425 from Carreau/fix-js-python Fix impossibility to upload notebooks. --- diff --git a/IPython/html/static/tree/js/notebooklist.js b/IPython/html/static/tree/js/notebooklist.js index 8536ae5..5367c65 100644 --- a/IPython/html/static/tree/js/notebooklist.js +++ b/IPython/html/static/tree/js/notebooklist.js @@ -71,7 +71,7 @@ var IPython = (function (IPython) { reader.readAsText(f); var name_and_ext = utils.splitext(f.name); var nbname = name_and_ext[0]; - var file_ext = name_and_ext[-1]; + var file_ext = name_and_ext[1]; if (file_ext === '.ipynb') { var item = that.new_notebook_item(0); that.add_name_input(nbname, item); @@ -326,7 +326,7 @@ var IPython = (function (IPython) { var settings = { processData : false, cache : false, - type : 'POST', + type : 'PUT', dataType : 'json', data : JSON.stringify(model), headers : {'Content-Type': content_type},