fix deactivating graph nodes without reloading

This commit is contained in:
Laura Klünder 2017-11-25 16:40:09 +01:00
parent be7cd685be
commit 6288a1304f

View file

@ -173,7 +173,7 @@ editor = {
editor._active_graph_node_html = null;
active_graph_node.remove();
} else {
editor._active_graph_node = active_graph_node_id;
editor._active_graph_node = parseInt(active_graph_node_id);
editor._active_graph_node_html = active_graph_node.html();
}
} else if (editor._active_graph_node_html !== null) {
@ -514,7 +514,7 @@ editor = {
style.fillOpacity = 0.5;
}
}
if (feature.properties.type === 'graphnode' && String(feature.properties.id) === editor._active_graph_node) {
if (feature.properties.type === 'graphnode' && feature.properties.id === editor._active_graph_node) {
style.stroke = true;
style.weight = 3;
style.color = '#00ff00';