added source link
This commit is contained in:
parent
737ef3c6fb
commit
d8310ce45b
@ -282,18 +282,11 @@ function generateDropOp() { // For options that change based on data.
|
|||||||
while (info.firstChild) {
|
while (info.firstChild) {
|
||||||
info.removeChild(info.firstChild);
|
info.removeChild(info.firstChild);
|
||||||
}
|
}
|
||||||
var p2 = document.createElement("p");
|
|
||||||
var a = document.createElement("a");
|
var a = document.createElement("a");
|
||||||
p2.appendChild(document.createTextNode("Source: "));
|
a.appendChild(document.createTextNode("Source"));
|
||||||
if(langInfo.source === undefined) {
|
a.href = serverURL + "/server/" + langInfo.id;
|
||||||
p2.appendChild(document.createTextNode("N/A"));
|
a.setAttribute("target", "_blank");
|
||||||
} else if(langInfo.source.length > 0) {
|
info.appendChild(a);
|
||||||
a.href = langInfo.source;
|
|
||||||
srcText = (langInfo.source.length > 60) ? langInfo.source.substring(0, 57) + "..." : langInfo.source;
|
|
||||||
a.appendChild(document.createTextNode(srcText));
|
|
||||||
p2.appendChild(a);
|
|
||||||
}
|
|
||||||
info.appendChild(p2);
|
|
||||||
|
|
||||||
// Generate data box material.
|
// Generate data box material.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user