Show More
@@ -318,6 +318,7 b' var IPython = (function (IPython) {' | |||||
318 | .addClass('btn btn-primary btn-mini upload_button') |
|
318 | .addClass('btn btn-primary btn-mini upload_button') | |
319 | .click(function (e) { |
|
319 | .click(function (e) { | |
320 | var nbname = item.find('.item_name > input').val(); |
|
320 | var nbname = item.find('.item_name > input').val(); | |
|
321 | var path = that.notebookPath(); | |||
321 | var nbdata = item.data('nbdata'); |
|
322 | var nbdata = item.data('nbdata'); | |
322 | var content_type = 'application/json'; |
|
323 | var content_type = 'application/json'; | |
323 | var model = { |
|
324 | var model = { | |
@@ -331,7 +332,7 b' var IPython = (function (IPython) {' | |||||
331 | data : JSON.stringify(model), |
|
332 | data : JSON.stringify(model), | |
332 | headers : {'Content-Type': content_type}, |
|
333 | headers : {'Content-Type': content_type}, | |
333 | success : function (data, status, xhr) { |
|
334 | success : function (data, status, xhr) { | |
334 |
that.add_link( |
|
335 | that.add_link(path, nbname, item); | |
335 | that.add_delete_button(item); |
|
336 | that.add_delete_button(item); | |
336 | }, |
|
337 | }, | |
337 | error : function (data, status, xhr) { |
|
338 | error : function (data, status, xhr) { |
General Comments 0
You need to be logged in to leave comments.
Login now