Show More
@@ -273,7 +273,7 b' define([' | |||
|
273 | 273 | |
|
274 | 274 | KernelSelector.prototype.new_notebook = function (kernel_name) { |
|
275 | 275 | |
|
276 |
var w = window.open( |
|
|
276 | var w = window.open('', IPython._target); | |
|
277 | 277 | // Create a new notebook in the same path as the current |
|
278 | 278 | // notebook's path. |
|
279 | 279 | var that = this; |
@@ -76,7 +76,7 b' define([' | |||
|
76 | 76 | notebook_path |
|
77 | 77 | ) + "?download=" + download.toString(); |
|
78 | 78 | |
|
79 |
var w = window.open( |
|
|
79 | var w = window.open('', IPython._target); | |
|
80 | 80 | if (this.notebook.dirty) { |
|
81 | 81 | this.notebook.save_notebook().then(function() { |
|
82 | 82 | w.location = url; |
@@ -2043,7 +2043,7 b' define(function (require) {' | |||
|
2043 | 2043 | Notebook.prototype.copy_notebook = function () { |
|
2044 | 2044 | var that = this; |
|
2045 | 2045 | var base_url = this.base_url; |
|
2046 |
var w = window.open( |
|
|
2046 | var w = window.open('', IPython._target); | |
|
2047 | 2047 | var parent = utils.url_path_split(this.notebook_path)[0]; |
|
2048 | 2048 | this.contents.copy(this.notebook_path, parent).then( |
|
2049 | 2049 | function (data) { |
@@ -73,7 +73,7 b' define([' | |||
|
73 | 73 | if (!NotebookList._bound_singletons) { |
|
74 | 74 | NotebookList._bound_singletons = true; |
|
75 | 75 | $('#new-file').click(function(e) { |
|
76 |
var w = window.open( |
|
|
76 | var w = window.open('', IPython._target); | |
|
77 | 77 | that.contents.new_untitled(that.notebook_path || '', {type: 'file', ext: '.txt'}).then(function(data) { |
|
78 | 78 | var url = utils.url_join_encode( |
|
79 | 79 | that.base_url, 'edit', data.path |
General Comments 0
You need to be logged in to leave comments.
Login now