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