Show More
@@ -91,6 +91,7 b' define([' | |||||
91 | // notebook's path. |
|
91 | // notebook's path. | |
92 | that.contents.new(that.notebook.notebook_path, null, { |
|
92 | that.contents.new(that.notebook.notebook_path, null, { | |
93 | ext: ".ipynb", |
|
93 | ext: ".ipynb", | |
|
94 | extra_settings: {async: false}, // So we can open a new window afterwards | |||
94 | success: function (data) { |
|
95 | success: function (data) { | |
95 | window.open( |
|
96 | window.open( | |
96 | utils.url_join_encode( |
|
97 | utils.url_join_encode( |
@@ -118,6 +118,9 b' define([' | |||||
118 | success : options.success || function() {}, |
|
118 | success : options.success || function() {}, | |
119 | error : this.create_basic_error_handler(options.error) |
|
119 | error : this.create_basic_error_handler(options.error) | |
120 | }; |
|
120 | }; | |
|
121 | if (options.extra_settings) { | |||
|
122 | $.extend(settings, options.extra_settings); | |||
|
123 | } | |||
121 | $.ajax(this.api_url(path), settings); |
|
124 | $.ajax(this.api_url(path), settings); | |
122 | }; |
|
125 | }; | |
123 |
|
126 |
@@ -62,6 +62,7 b' require([' | |||||
62 | $('#new_notebook').click(function (e) { |
|
62 | $('#new_notebook').click(function (e) { | |
63 | contents.new(common_options.notebook_path, null, { |
|
63 | contents.new(common_options.notebook_path, null, { | |
64 | ext: ".ipynb", |
|
64 | ext: ".ipynb", | |
|
65 | extra_settings: {async: false}, // So we can open a new window afterwards | |||
65 | success: function (data) { |
|
66 | success: function (data) { | |
66 | window.open( |
|
67 | window.open( | |
67 | utils.url_join_encode( |
|
68 | utils.url_join_encode( |
General Comments 0
You need to be logged in to leave comments.
Login now