history: cleanup

This commit is contained in:
Nils Schneider 2015-03-21 10:40:09 +01:00
parent c8497c248a
commit c27653a0e2

View File

@ -154,7 +154,6 @@ function handle_data(config, map) {
var markers = mkmap(map, newnodes, lostnodes, onlinenodes, graph) var markers = mkmap(map, newnodes, lostnodes, onlinenodes, graph)
console.log(markers)
addToList(document.getElementById("newnodes"), config.showContact, "firstseen", markers, newnodes) addToList(document.getElementById("newnodes"), config.showContact, "firstseen", markers, newnodes)
addToList(document.getElementById("lostnodes"), config.showContact, "lastseen", markers, lostnodes) addToList(document.getElementById("lostnodes"), config.showContact, "lastseen", markers, lostnodes)
@ -203,7 +202,7 @@ function mkmap(map, newnodes, lostnodes, onlinenodes, graph) {
} }
var m = L.marker([d.nodeinfo.location.latitude, d.nodeinfo.location.longitude], opt) var m = L.marker([d.nodeinfo.location.latitude, d.nodeinfo.location.longitude], opt)
m.bindPopup(d.nodeinfo.hostname) m.bindPopup(d.nodeinfo.hostname)
markersDict[d.nodeinfo.node_id] = m markersDict[d.nodeinfo.node_id] = m