diff --git a/IPython/html/static/tree/js/notebooklist.js b/IPython/html/static/tree/js/notebooklist.js index d348e11..10a937b 100644 --- a/IPython/html/static/tree/js/notebooklist.js +++ b/IPython/html/static/tree/js/notebooklist.js @@ -82,8 +82,10 @@ define([ that.load_sessions(); }); $('#new-folder').click(function(e) { - that.contents.new_untitled(that.notebook_path || '', {type: 'directory'}); - that.load_sessions(); + that.contents.new_untitled(that.notebook_path || '', {type: 'directory'}) + .then(function(){ + that.load_list(); + }); }); } };