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