From f4a9b71852c9f7f5074fa7517177a5215e57e52c 2012-05-15 19:54:09 From: Matthias BUSSONNIER Date: 2012-05-15 19:54:09 Subject: [PATCH] Drag target bigger for empty notebook dashboard When no notebooks, show "Notebook list empty", which increase the size of the drag target. fixes #1492 --- diff --git a/IPython/frontend/html/notebook/static/js/notebooklist.js b/IPython/frontend/html/notebook/static/js/notebooklist.js index 69a8c66..436325c 100644 --- a/IPython/frontend/html/notebook/static/js/notebooklist.js +++ b/IPython/frontend/html/notebook/static/js/notebooklist.js @@ -103,7 +103,16 @@ var IPython = (function (IPython) { NotebookList.prototype.list_loaded = function (data, status, xhr) { var len = data.length; this.clear_list(); - // Todo: remove old children + + if(len == 0) + { + $(this.new_notebook_item(0)) + .append( + $('
') + .text('Notebook list empty.') + ) + } + for (var i=0; i