ensure IPython._target is defined

This commit is contained in:
Min RK 2015-02-03 12:40:58 -08:00
parent cdb5deef9a
commit 0378ace195
2 changed files with 2 additions and 1 deletions

View File

@ -5,5 +5,6 @@ var IPython = IPython || {};
define([], function(){
"use strict";
IPython.version = "3.0.0-dev";
IPython._target = '_blank';
return IPython;
});

View File

@ -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);