Skip to content

Commit

Permalink
Prevent default event handling on new terminal
Browse files Browse the repository at this point in the history
Avoid resetting the directory navigation when you create a new terminal.

Closes gh-3496
  • Loading branch information
takluyver committed Apr 4, 2018
1 parent e3ee807 commit 3980d81
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notebook/static/tree/js/terminallist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 3980d81

Please sign in to comment.