Show More
@@ -73,6 +73,7 b' var IPython = (function (IPython) {' | |||
|
73 | 73 | var file_ext = name_and_ext[1]; |
|
74 | 74 | if (file_ext === '.ipynb') { |
|
75 | 75 | var item = that.new_notebook_item(0); |
|
76 | item.addClass('new-file'); | |
|
76 | 77 | that.add_name_input(f.name, item); |
|
77 | 78 | // Store the notebook item in the reader so we can use it later |
|
78 | 79 | // to know which item it belongs to. |
@@ -99,8 +100,17 b' var IPython = (function (IPython) {' | |||
|
99 | 100 | return false; |
|
100 | 101 | }; |
|
101 | 102 | |
|
102 | NotebookList.prototype.clear_list = function () { | |
|
103 | this.element.children('.list_item').remove(); | |
|
103 | NotebookList.prototype.clear_list = function (remove_uploads) { | |
|
104 | // Clears the navigation tree. | |
|
105 | // | |
|
106 | // Parameters | |
|
107 | // remove_uploads: bool=False | |
|
108 | // Should upload prompts also be removed from the tree. | |
|
109 | if (remove_uploads) { | |
|
110 | this.element.children('.list_item').remove(); | |
|
111 | } else { | |
|
112 | this.element.children('.list_item:not(.new-file)').remove(); | |
|
113 | } | |
|
104 | 114 | }; |
|
105 | 115 | |
|
106 | 116 | NotebookList.prototype.load_sessions = function(){ |
General Comments 0
You need to be logged in to leave comments.
Login now