diff --git a/notebook/static/tree/js/terminallist.js b/notebook/static/tree/js/terminallist.js index 2f349afe2..bf95f0c99 100644 --- a/notebook/static/tree/js/terminallist.js +++ b/notebook/static/tree/js/terminallist.js @@ -42,7 +42,10 @@ define([ $('#new-terminal').click($.proxy(this.new_terminal, this)); }; - TerminalList.prototype.new_terminal = function () { + TerminalList.prototype.new_terminal = function (event) { + if (event) { + event.preventDefault(); + } var w = window.open('#', IPython._target); var base_url = this.base_url; var settings = {