mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
ensure IPython._target is defined
This commit is contained in:
parent
cdb5deef9a
commit
0378ace195
@ -5,5 +5,6 @@ var IPython = IPython || {};
|
||||
define([], function(){
|
||||
"use strict";
|
||||
IPython.version = "3.0.0-dev";
|
||||
IPython._target = '_blank';
|
||||
return IPython;
|
||||
});
|
||||
|
@ -293,7 +293,7 @@ define([
|
||||
// directory nav doesn't open new tabs
|
||||
// files, notebooks do
|
||||
if (model.type !== "directory") {
|
||||
link.attr('target',IPython._target||'_blank');
|
||||
link.attr('target',IPython._target);
|
||||
}
|
||||
if (model.type !== 'directory') {
|
||||
this.add_duplicate_button(item);
|
||||
|
Loading…
Reference in New Issue
Block a user