Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

open notebook copy in different tabs

returning false to allow modifier+click,
otherwise open 2 tabs at once.
  • Loading branch information...
commit 4f2da92d4c66822b08633fe04136f78647bb32cf 1 parent 7cbe62f
@Carreau Carreau authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  IPython/frontend/html/notebook/static/js/menubar.js
View
3  IPython/frontend/html/notebook/static/js/menubar.js
@@ -48,7 +48,8 @@ var IPython = (function (IPython) {
this.element.find('#copy_notebook').click(function () {
var notebook_id = IPython.notebook.get_notebook_id();
var url = $('body').data('baseProjectUrl') + notebook_id + '/copy';
- window.open(url,'_newtab');
+ window.open(url,'_blank');
+ return false;
});
this.element.find('#save_notebook').click(function () {
IPython.notebook.save_notebook();
Please sign in to comment.
Something went wrong with that request. Please try again.