##// END OF EJS Templates
Fix some bugs in deleting notebooks from the dashboard
Thomas Kluyver -
Show More
@@ -318,7 +318,7 b' define(['
318 // We use the filename from the parent list_item element's
318 // We use the filename from the parent list_item element's
319 // data because the outer scope's values change as we iterate through the loop.
319 // data because the outer scope's values change as we iterate through the loop.
320 var parent_item = that.parents('div.list_item');
320 var parent_item = that.parents('div.list_item');
321 var name = parent_item.data('nbname');
321 var name = parent_item.data('name');
322 var path = parent_item.data('path');
322 var path = parent_item.data('path');
323 var message = 'Are you sure you want to permanently delete the file: ' + name + '?';
323 var message = 'Are you sure you want to permanently delete the file: ' + name + '?';
324 dialog.modal({
324 dialog.modal({
@@ -345,7 +345,7 b' define(['
345
345
346 NotebookList.prototype.notebook_deleted = function(path) {
346 NotebookList.prototype.notebook_deleted = function(path) {
347 // Remove the deleted notebook.
347 // Remove the deleted notebook.
348 $( ":data(nbname)" ).each(function() {
348 $( ":data(path)" ).each(function() {
349 var element = $(this);
349 var element = $(this);
350 if (element.data("path") == path) {
350 if (element.data("path") == path) {
351 element.remove();
351 element.remove();
General Comments 0
You need to be logged in to leave comments. Login now