Merge branch '1369-interface-graphs-when-interface-is-not-init-in-networkmaps-dev' into 'develop'

Fixed filter to show interface graph or not

See merge request artica/pandorafms!957
This commit is contained in:
vgilc 2017-11-29 13:27:39 +01:00
commit 7beb05f8db

View File

@ -821,6 +821,12 @@ function get_interface_data_to_table(node_selected, selected_links) {
}
else {
jQuery.each(data, function (j, interface) {
if (interface['graph'] == "") {
var interf_graph = "--";
}
else {
var interf_graph = interface['graph'];
}
$("#interface_information").find('tbody')
.append($('<tr>')
.append($('<td>')
@ -830,7 +836,7 @@ function get_interface_data_to_table(node_selected, selected_links) {
.html(interface['status'])
)
.append($('<td>')
.html(interface['graph'])
.html(interf_graph)
)
.append($('<td>')
.html(interface['ip'])