Skip to content

Commit feba975

Browse files
committed
changed comments
1 parent 76d5422 commit feba975

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

notebook/static/tree/js/notebooklist.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -729,9 +729,8 @@ define([
729729
$('.move-button').css('display', 'none');
730730
}
731731

732-
// Download is only visible when items is selected, and it is not a
733-
// running notebook or a directory
734-
// Added support for downloading multiple items
732+
// Download is only visible when items are selected, and none are
733+
// running notebooks or a directories
735734
if (selected.length > 0 && !has_running_notebook && !has_directory) {
736735
$('.download-button').css('display', 'inline-block');
737736
} else {
@@ -1155,10 +1154,6 @@ define([
11551154
var item_path = utils.encode_uri_components(item.path);
11561155
window.open(utils.url_path_join(that.base_url, 'files', utils.encode_uri_components(item_path)) + '?download=1', IPython._target);
11571156
});
1158-
1159-
// var item_path = that.selected[0].path;
1160-
1161-
// window.open(utils.url_path_join(that.base_url, 'files', utils.encode_uri_components(item_path)) + '?download=1', IPython._target);
11621157
};
11631158

11641159
NotebookList.prototype.delete_selected = function() {

0 commit comments

Comments
 (0)