Show More
@@ -72,7 +72,13 b' define([' | |||||
72 | if (!NotebookList._bound_singletons) { |
|
72 | if (!NotebookList._bound_singletons) { | |
73 | NotebookList._bound_singletons = true; |
|
73 | NotebookList._bound_singletons = true; | |
74 | $('#new-file').click(function(e) { |
|
74 | $('#new-file').click(function(e) { | |
75 | that.contents.new_untitled(that.notebook_path || '', {type: 'file', ext: '.txt'}); |
|
75 | var w = window.open(); | |
|
76 | that.contents.new_untitled(that.notebook_path || '', {type: 'file', ext: '.txt'}).then(function(data) { | |||
|
77 | var url = utils.url_join_encode( | |||
|
78 | that.base_url, 'edit', data.path | |||
|
79 | ); | |||
|
80 | w.location = url; | |||
|
81 | }); | |||
76 | that.load_sessions(); |
|
82 | that.load_sessions(); | |
77 | }); |
|
83 | }); | |
78 | $('#new-folder').click(function(e) { |
|
84 | $('#new-folder').click(function(e) { |
General Comments 0
You need to be logged in to leave comments.
Login now