Show More
@@ -103,7 +103,16 b' var IPython = (function (IPython) {' | |||
|
103 | 103 | NotebookList.prototype.list_loaded = function (data, status, xhr) { |
|
104 | 104 | var len = data.length; |
|
105 | 105 | this.clear_list(); |
|
106 | // Todo: remove old children | |
|
106 | ||
|
107 | if(len == 0) | |
|
108 | { | |
|
109 | $(this.new_notebook_item(0)) | |
|
110 | .append( | |
|
111 | $('<div style="margin:auto;text-align:center;color:grey"/>') | |
|
112 | .text('Notebook list empty.') | |
|
113 | ) | |
|
114 | } | |
|
115 | ||
|
107 | 116 | for (var i=0; i<len; i++) { |
|
108 | 117 | var notebook_id = data[i].notebook_id; |
|
109 | 118 | var nbname = data[i].name; |
General Comments 0
You need to be logged in to leave comments.
Login now