##// END OF EJS Templates
Make upload work with new UI
Jonathan Frederic -
Show More
@@ -337,16 +337,18 b' define(['
337 var that = this;
337 var that = this;
338 $('.list_item :checked').each(function(index, item) {
338 $('.list_item :checked').each(function(index, item) {
339 var parent = $(item).parent().parent();
339 var parent = $(item).parent().parent();
340 selected.push({
340 if (parent.find('.upload_button').length === 0) {
341 name: parent.data('name'),
341 selected.push({
342 path: parent.data('path'),
342 name: parent.data('name'),
343 type: parent.data('type')
343 path: parent.data('path'),
344 });
344 type: parent.data('type')
345 });
345
346
346 has_running_notebook = has_running_notebook ||
347 has_running_notebook = has_running_notebook ||
347 (parent.data('type') == 'notebook' && that.sessions[parent.data('path')] !== undefined);
348 (parent.data('type') == 'notebook' && that.sessions[parent.data('path')] !== undefined);
348 has_file = has_file || parent.data('type') == 'file';
349 has_file = has_file || parent.data('type') == 'file';
349 has_directory = has_directory || parent.data('type') == 'directory';
350 has_directory = has_directory || parent.data('type') == 'directory';
351 }
350 });
352 });
351 this.selected = selected;
353 this.selected = selected;
352
354
@@ -672,7 +674,6 b' define(['
672 var on_success = function () {
674 var on_success = function () {
673 item.removeClass('new-file');
675 item.removeClass('new-file');
674 that.add_link(model, item);
676 that.add_link(model, item);
675 that.add_delete_button(item);
676 that.session_list.load_sessions();
677 that.session_list.load_sessions();
677 };
678 };
678
679
@@ -98,6 +98,10 b' ul.breadcrumb {'
98 }
98 }
99 }
99 }
100
100
101 .new-file input[type=checkbox] {
102 visibility: hidden;
103 }
104
101 .item_name {
105 .item_name {
102 line-height: @btn_mini_height;
106 line-height: @btn_mini_height;
103 height: @btn_small_height;
107 height: @btn_small_height;
General Comments 0
You need to be logged in to leave comments. Login now