[BUGFIX]'tablesort' not found and node-table
This commit is contained in:
parent
5ac941aa34
commit
63fbd7f23c
@ -1,5 +1,5 @@
|
|||||||
define(['chroma-js', 'moment', 'tablesort', 'helper'],
|
define(['chroma-js', 'moment', 'tablesort', 'helper'],
|
||||||
function (chroma, moment, Tablesort, helper) {
|
function (chroma, moment, tablesort, helper) {
|
||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
function showGeoURI(d) {
|
function showGeoURI(d) {
|
||||||
@ -264,7 +264,7 @@ define(['chroma-js', 'moment', 'tablesort', 'helper'],
|
|||||||
|
|
||||||
d.neighbours.forEach(function (n) {
|
d.neighbours.forEach(function (n) {
|
||||||
var unknown = !(n.node);
|
var unknown = !(n.node);
|
||||||
var tr1 = document.createElement('tr');
|
tr = document.createElement('tr');
|
||||||
|
|
||||||
var td1 = document.createElement('td');
|
var td1 = document.createElement('td');
|
||||||
|
|
||||||
@ -278,7 +278,7 @@ define(['chroma-js', 'moment', 'tablesort', 'helper'],
|
|||||||
td1.appendChild(span);
|
td1.appendChild(span);
|
||||||
}
|
}
|
||||||
|
|
||||||
tr1.appendChild(td1);
|
tr.appendChild(td1);
|
||||||
|
|
||||||
var td2 = document.createElement('td');
|
var td2 = document.createElement('td');
|
||||||
|
|
||||||
@ -293,17 +293,17 @@ define(['chroma-js', 'moment', 'tablesort', 'helper'],
|
|||||||
td2.textContent = n.id;
|
td2.textContent = n.id;
|
||||||
}
|
}
|
||||||
|
|
||||||
tr1.appendChild(td2);
|
tr.appendChild(td2);
|
||||||
|
|
||||||
var td3 = document.createElement('td');
|
var td3 = document.createElement('td');
|
||||||
td3.textContent = helper.showTq(n.link);
|
td3.textContent = helper.showTq(n.link);
|
||||||
td3.style.color = linkScale(n.link.tq).hex();
|
td3.style.color = linkScale(n.link.tq).hex();
|
||||||
tr1.appendChild(td3);
|
tr.appendChild(td3);
|
||||||
|
|
||||||
var td4 = document.createElement('td');
|
var td4 = document.createElement('td');
|
||||||
td4.textContent = helper.showDistance(n.link);
|
td4.textContent = helper.showDistance(n.link);
|
||||||
td4.setAttribute('data-sort', n.link.distance !== undefined ? -n.link.distance : 1);
|
td4.setAttribute('data-sort', n.link.distance !== undefined ? -n.link.distance : 1);
|
||||||
tr1.appendChild(td4);
|
tr.appendChild(td4);
|
||||||
|
|
||||||
tbody.appendChild(tr);
|
tbody.appendChild(tr);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user