Show More
@@ -74,16 +74,16 b' define([' | |||||
74 | $.ajax(url,settings); |
|
74 | $.ajax(url,settings); | |
75 | }; |
|
75 | }; | |
76 |
|
76 | |||
77 |
ContentManager.prototype.delete_notebook = function(name, path |
|
77 | ContentManager.prototype.delete_notebook = function(name, path) { | |
78 | var settings = { |
|
78 | var settings = { | |
79 | processData : false, |
|
79 | processData : false, | |
80 | cache : false, |
|
80 | cache : false, | |
81 | type : "DELETE", |
|
81 | type : "DELETE", | |
82 | dataType: "json", |
|
82 | dataType : "json", | |
83 | error : utils.log_ajax_error, |
|
83 | error : utils.log_ajax_error, | |
84 | }; |
|
84 | }; | |
85 | var url = utils.url_join_encode( |
|
85 | var url = utils.url_join_encode( | |
86 | base_url, |
|
86 | this.base_url, | |
87 | 'api/notebooks', |
|
87 | 'api/notebooks', | |
88 | path, |
|
88 | path, | |
89 | name |
|
89 | name |
@@ -2065,7 +2065,7 b' define([' | |||||
2065 | }; |
|
2065 | }; | |
2066 |
|
2066 | |||
2067 | Notebook.prototype.delete = function () { |
|
2067 | Notebook.prototype.delete = function () { | |
2068 |
this.content_manager.delete_notebook(this.notebook_name, this.notebook_path |
|
2068 | this.content_manager.delete_notebook(this.notebook_name, this.notebook_path); | |
2069 | }; |
|
2069 | }; | |
2070 |
|
2070 | |||
2071 | Notebook.prototype.rename_success = function (json, status, xhr) { |
|
2071 | Notebook.prototype.rename_success = function (json, status, xhr) { |
@@ -332,7 +332,6 b' define([' | |||||
332 | var parent_item = that.parents('div.list_item'); |
|
332 | var parent_item = that.parents('div.list_item'); | |
333 | var nbname = parent_item.data('nbname'); |
|
333 | var nbname = parent_item.data('nbname'); | |
334 | var path = parent_item.data('path'); |
|
334 | var path = parent_item.data('path'); | |
335 | var base_url = utils.get_body_data("baseUrl"); |
|
|||
336 | var message = 'Are you sure you want to permanently delete the notebook: ' + nbname + '?'; |
|
335 | var message = 'Are you sure you want to permanently delete the notebook: ' + nbname + '?'; | |
337 | dialog.modal({ |
|
336 | dialog.modal({ | |
338 | title : "Delete file", |
|
337 | title : "Delete file", | |
@@ -341,7 +340,7 b' define([' | |||||
341 | Delete : { |
|
340 | Delete : { | |
342 | class: "btn-danger", |
|
341 | class: "btn-danger", | |
343 | click: function() { |
|
342 | click: function() { | |
344 |
notebooklist.content_manager.delete_notebook(nbname, path |
|
343 | notebooklist.content_manager.delete_notebook(nbname, path); | |
345 | } |
|
344 | } | |
346 | }, |
|
345 | }, | |
347 | Cancel : {} |
|
346 | Cancel : {} |
General Comments 0
You need to be logged in to leave comments.
Login now