From ca65de9fa257c2a7b922df005f5fa6e20942c3dc Mon Sep 17 00:00:00 2001 From: Matthias BUSSONNIER Date: Thu, 12 Jul 2012 16:02:56 +0200 Subject: [PATCH] open notebook copy in different tabs returning false to allow modifier+click, otherwise open 2 tabs at once. --- IPython/frontend/html/notebook/static/js/menubar.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IPython/frontend/html/notebook/static/js/menubar.js b/IPython/frontend/html/notebook/static/js/menubar.js index e2e6c616e..fc0db8888 100644 --- a/IPython/frontend/html/notebook/static/js/menubar.js +++ b/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();