New maps in progress... (Fixed returned data in a node status function)

This commit is contained in:
Arturo Gonzalez 2016-03-31 16:48:30 +02:00
parent ed3cb1b50c
commit 6e6317cb8d

View File

@ -1828,11 +1828,16 @@ MapController.prototype.make_arrow = function(from_id, to_id) {
*/
MapController.prototype.get_status_selection_node = function(id_node) {
var self = this;
var status = d3.select(self._target + " #node_" + id_node)
.attr("data-select");
return status.split(" ");
if (status == null) {
return [];
}
else {
return status.split(" ");
}
}
/**