Show More
@@ -337,16 +337,18 b' define([' | |||
|
337 | 337 | var that = this; |
|
338 | 338 | $('.list_item :checked').each(function(index, item) { |
|
339 | 339 | var parent = $(item).parent().parent(); |
|
340 | selected.push({ | |
|
341 | name: parent.data('name'), | |
|
342 |
|
|
|
343 |
|
|
|
344 | }); | |
|
340 | if (parent.find('.upload_button').length === 0) { | |
|
341 | selected.push({ | |
|
342 | name: parent.data('name'), | |
|
343 | path: parent.data('path'), | |
|
344 | type: parent.data('type') | |
|
345 | }); | |
|
345 | 346 | |
|
346 | has_running_notebook = has_running_notebook || | |
|
347 | (parent.data('type') == 'notebook' && that.sessions[parent.data('path')] !== undefined); | |
|
348 | has_file = has_file || parent.data('type') == 'file'; | |
|
349 | has_directory = has_directory || parent.data('type') == 'directory'; | |
|
347 | has_running_notebook = has_running_notebook || | |
|
348 | (parent.data('type') == 'notebook' && that.sessions[parent.data('path')] !== undefined); | |
|
349 | has_file = has_file || parent.data('type') == 'file'; | |
|
350 | has_directory = has_directory || parent.data('type') == 'directory'; | |
|
351 | } | |
|
350 | 352 | }); |
|
351 | 353 | this.selected = selected; |
|
352 | 354 | |
@@ -672,7 +674,6 b' define([' | |||
|
672 | 674 | var on_success = function () { |
|
673 | 675 | item.removeClass('new-file'); |
|
674 | 676 | that.add_link(model, item); |
|
675 | that.add_delete_button(item); | |
|
676 | 677 | that.session_list.load_sessions(); |
|
677 | 678 | }; |
|
678 | 679 |
General Comments 0
You need to be logged in to leave comments.
Login now