Dead code for displaying ajax info on ASses

This commit is contained in:
Sebastian Lohff 2015-03-28 22:49:31 +01:00
parent 0ce6a266ae
commit 35e897520b
1 changed files with 10 additions and 1 deletions

View File

@ -164,7 +164,7 @@ $('svg g').tipsy({
state = '<span class="label label-default">Never seen</span>';
content = '<b>AS '+d.asnumber+'</b><br>';
content += '<table style="opacity: 1.0" class="table table-bordered">';
content += '<table style="opacity: 1.0" class="table table-bordered" id="node-popup-'+d.id+'">';
content += '<tr><th>State</th><td>'+state+'</td>';
if(d.lastSeen) {
content += '<tr><th>Last seen</th><td><a href="/map/'+d.lastSeen+'/">Crawl '+d.lastSeen+'<br>'+d.lastSeenDate+'</a></td></tr>';
@ -173,6 +173,15 @@ $('svg g').tipsy({
content += '<tr><th>Note</th><td>Directly crawled</td></tr>';
}
content += '</table>';
//(function(node) {
// $.ajax({url: "/map/api/borderrouter/?crawl={{crawl.id}}&AS="+node.id, success: function(result) {
// $('#node-popup-'+node.id).append("<tr><th>Javascript</th><td>I FUCKING HATE IT</td></tr>");
// console.log($('#node-popup-'+node.id));
// console.log(result);
// }
// });
//})(d);
}
return content;
}