Show More
@@ -103,7 +103,16 b' var IPython = (function (IPython) {' | |||||
103 | NotebookList.prototype.list_loaded = function (data, status, xhr) { |
|
103 | NotebookList.prototype.list_loaded = function (data, status, xhr) { | |
104 | var len = data.length; |
|
104 | var len = data.length; | |
105 | this.clear_list(); |
|
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 | for (var i=0; i<len; i++) { |
|
116 | for (var i=0; i<len; i++) { | |
108 | var notebook_id = data[i].notebook_id; |
|
117 | var notebook_id = data[i].notebook_id; | |
109 | var nbname = data[i].name; |
|
118 | var nbname = data[i].name; |
General Comments 0
You need to be logged in to leave comments.
Login now