Skip to content
Snippets Groups Projects
Commit 893a12e7 authored by Christian Petrov's avatar Christian Petrov Committed by Marijn Haverbeke
Browse files

[tern addon] open [doc] link in a new tab/window

Opening the documentation in the same window navigates away from the
code editor.
parent bb8f072c
No related branches found
No related tags found
No related merge requests found
...@@ -252,7 +252,9 @@ ...@@ -252,7 +252,9 @@
tip.appendChild(document.createTextNode("" + data.doc)); tip.appendChild(document.createTextNode("" + data.doc));
if (data.url) { if (data.url) {
tip.appendChild(document.createTextNode(" ")); tip.appendChild(document.createTextNode(" "));
tip.appendChild(elt("a", null, "[docs]")).href = data.url; var child = tip.appendChild(elt("a", null, "[docs]"));
child.href = data.url;
child.target = "_blank";
} }
} }
tempTooltip(cm, tip); tempTooltip(cm, tip);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment